From 9f852c038615c2b8976f01a4be31846b76800610 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 2 Sep 2019 15:10:58 +0300 Subject: [PATCH] Make transparency updated after abort of transparency setting --- src/Model/Model_Objects.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); -- 2.39.2