]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make Box sketch and extrusion updated on changing of the Box parameters in property...
authormpv <mikhail.ponikarov@opencascade.com>
Wed, 26 Nov 2014 11:22:26 +0000 (14:22 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Wed, 26 Nov 2014 11:22:26 +0000 (14:22 +0300)
src/Model/Model_Update.cpp

index 8aa00217e8bbc546b2784ef0999a17a69285842d..e7116df59d3cbadb34bbab0f54739b53d98ec188 100644 (file)
@@ -80,6 +80,7 @@ void Model_Update::processEvent(const std::shared_ptr<Events_Message>& theMessag
     std::set<ObjectPtr>::const_iterator anObjIter = anObjs.cbegin();
     for(; anObjIter != anObjs.cend(); anObjIter++) {
       myJustCreatedOrUpdated.insert(*anObjIter);
+      (*anObjIter)->data()->mustBeUpdated(true); // object must be updated because it was changed
     }
     if (theMessage->eventID() == kMovedEvent)
       return; // this event is for solver update, not here
@@ -284,7 +285,9 @@ bool Model_Update::updateFeature(FeaturePtr theFeature)
       } else { // for automatically updated features (on abort, etc) it is necessary to redisplay anyway
         redisplayWithResults(theFeature);
       }
-    } else {  // returns also true is results were updated: for sketch that refers to sub-features but results of sub-features were changed
+    } else {
+      // returns also true is results were updated: for sketch that 
+      // refers to sub-features but results of sub-features were changed
       const std::list<std::shared_ptr<ModelAPI_Result> >& aResults = theFeature->results();
       std::list<std::shared_ptr<ModelAPI_Result> >::const_iterator aRIter = aResults.begin();
       for (; aRIter != aResults.cend(); aRIter++) {