From 1490e92974d2c0bdcdbecd6fa9388e31dccfa363 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 12 Apr 2016 16:28:41 +0300 Subject: [PATCH] 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. --- src/Model/Model_Update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2