From: mpv Date: Mon, 2 Sep 2019 12:10:58 +0000 (+0300) Subject: Make transparency updated after abort of transparency setting X-Git-Tag: VEDF2019Lot4~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f852c038615c2b8976f01a4be31846b76800610;p=modules%2Fshaper.git Make transparency updated after abort of transparency setting --- diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index f0bd85807..3bda8a663 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -886,6 +886,19 @@ void Model_Objects::synchronizeFeatures( std::list >::iterator anAttr = anAttrs.begin(); for(; anAttr != anAttrs.end(); anAttr++) (*anAttr)->reinit(); + // if feature contains results, re-init them too + if (aFeature.get()) { + std::list aResults; + ModelAPI_Tools::allResults(aFeature, aResults); + std::list::iterator aResIter = aResults.begin(); + for(; aResIter != aResults.end(); aResIter++) { + std::list > anAttrs = + (*aResIter)->data()->attributes(""); + std::list >::iterator anAttr = anAttrs.begin(); + for(; anAttr != anAttrs.end(); anAttr++) + (*anAttr)->reinit(); + } + } } } ModelAPI_EventCreator::get()->sendUpdated(anObject, anUpdateEvent);