From: nds Date: Tue, 12 Apr 2016 13:28:41 +0000 (+0300) Subject: Issue #1383 Preview button: correction for the case: switch off auto_preview in extru... X-Git-Tag: V_2.3.0~237 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1490e92974d2c0bdcdbecd6fa9388e31dccfa363;p=modules%2Fshaper.git Issue #1383 Preview button: correction for the case: switch off auto_preview in extrusion, start extrusion, select sketch, enter height=0, click Enter to validate it, Apply is still green. --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index d49990aa5..16a7b9e3c 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -81,7 +81,7 @@ bool Model_Update::addModified(FeaturePtr theFeature, FeaturePtr theReason) { std::cout<<"*** Add process on finish "<name()<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