From: mpv Date: Thu, 3 Sep 2015 13:23:50 +0000 (+0300) Subject: Debug of update of feature that need no preview X-Git-Tag: V_1.4.0_beta4~133 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f33fdfb7bbe5fb3c47a33e98fee099256b10b6f4;p=modules%2Fshaper.git Debug of update of feature that need no preview --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 116a55daf..eed45d304 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -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;