]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Debug of update of feature that need no preview
authormpv <mpv@opencascade.com>
Thu, 3 Sep 2015 13:23:50 +0000 (16:23 +0300)
committermpv <mpv@opencascade.com>
Thu, 3 Sep 2015 13:23:50 +0000 (16:23 +0300)
src/Model/Model_Update.cpp

index 116a55dafa8f0d707f923d23dc20839f2116c7ab..eed45d3041b262b776cccffe54a24bb5d60a96cd 100644 (file)
@@ -310,7 +310,13 @@ void Model_Update::updateFeature(FeaturePtr theFeature)
   }
 
   // only the currently updated features are executed
-  bool aJustUpdated = myUpdated.find(theFeature) != myUpdated.end() && myUpdated[theFeature] == myModification;
+  bool aJustUpdated = myUpdated.find(theFeature) != myUpdated.end();
+  if (aJustUpdated) {
+    // if preview is not needed, the created feature was not updated before, so, myModification is not actual for this
+    if (theFeature->isPreviewNeeded()) {
+      aJustUpdated = myUpdated[theFeature] == myModification;
+    }
+  }
 
   if (myIsAutomatic && theFeature->data()->execState() == ModelAPI_StateMustBeUpdated)
     aJustUpdated = true;