]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make transparency updated after abort of transparency setting
authormpv <mpv@opencascade.com>
Mon, 2 Sep 2019 12:10:58 +0000 (15:10 +0300)
committermpv <mpv@opencascade.com>
Mon, 2 Sep 2019 12:11:11 +0000 (15:11 +0300)
src/Model/Model_Objects.cpp

index f0bd858070c7b9ac6cf9fcccfb29d1f2d23f7349..3bda8a66333862cb53e8039cf3ad58b36f0d2c0d 100644 (file)
@@ -886,6 +886,19 @@ void Model_Objects::synchronizeFeatures(
             std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
             for(; anAttr != anAttrs.end(); anAttr++)
               (*anAttr)->reinit();
+            // if feature contains results, re-init them too
+            if (aFeature.get()) {
+              std::list<ResultPtr> aResults;
+              ModelAPI_Tools::allResults(aFeature, aResults);
+              std::list<ResultPtr>::iterator aResIter = aResults.begin();
+              for(; aResIter != aResults.end(); aResIter++) {
+                std::list<std::shared_ptr<ModelAPI_Attribute> > anAttrs =
+                  (*aResIter)->data()->attributes("");
+                std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
+                for(; anAttr != anAttrs.end(); anAttr++)
+                  (*anAttr)->reinit();
+              }
+            }
           }
         }
         ModelAPI_EventCreator::get()->sendUpdated(anObject, anUpdateEvent);