]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1383 Preview button: correction for the case: switch off auto_preview in extru...
authornds <nds@opencascade.com>
Tue, 12 Apr 2016 13:28:41 +0000 (16:28 +0300)
committernds <nds@opencascade.com>
Tue, 12 Apr 2016 13:28:41 +0000 (16:28 +0300)
src/Model/Model_Update.cpp

index d49990aa5b267fd9b3e2b64e58136f3cf50f281a..16a7b9e3c740ee11a865b29cb91bfa429cf9497c 100644 (file)
@@ -81,7 +81,7 @@ bool Model_Update::addModified(FeaturePtr theFeature, FeaturePtr theReason) {
       std::cout<<"*** Add process on finish "<<theFeature->name()<<std::endl;
 #endif
     updateArguments(theFeature);
-    if (theFeature->data()->execState() == ModelAPI_StateMustBeUpdated) {
+    if (theFeature->data()->execState() == ModelAPI_StateMustBeUpdated || myIsPreviewBlocked) {
       theFeature->data()->execState(ModelAPI_StateDone);
       static ModelAPI_ValidatorsFactory* aFactory = ModelAPI_Session::get()->validators();
       aFactory->validate(theFeature); // need to be validated to update the "Apply" state if not previewed