]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1085
authormpv <mpv@opencascade.com>
Tue, 12 Apr 2016 11:58:57 +0000 (14:58 +0300)
committermpv <mpv@opencascade.com>
Tue, 12 Apr 2016 11:58:57 +0000 (14:58 +0300)
src/Model/Model_Update.cpp

index afe7e7c41cc927acfea100c38e73ac160063e5df..ee33076dcac1548c6ecf95baceb731e8b46839d0 100644 (file)
@@ -375,6 +375,11 @@ bool Model_Update::processFeature(FeaturePtr theFeature)
     return false;
   }
 
+  // evaluate parameter before the sub-elements update: it updates dependencies on evaluation (#1085)
+  if (theFeature->getKind() == "Parameter") {
+    theFeature->execute();
+  }
+
   // check all features this feature depended on (recursive call of updateFeature)
   std::set<std::shared_ptr<ModelAPI_Feature> >& aReasons = myModified[theFeature];
   if (aReasons.find(theFeature) == aReasons.end()) {