From 82267848014c2ecc3ee54b7769b6f185b2523544 Mon Sep 17 00:00:00 2001 From: Sergey POKHODENKO Date: Tue, 26 May 2015 10:19:42 +0300 Subject: [PATCH] Fix in ModuleBase_Operation::isValid(): check that exec state of feature is ModelAPI_StateMustBeUpdated --- src/ModuleBase/ModuleBase_Operation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index 8b5ed2d24..fc4e35945 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -75,7 +75,8 @@ bool ModuleBase_Operation::isValid() const // the feature exec state should be checked in order to do not apply features, which result can not // be built. E.g. extrusion on sketch, where the "to" is a perpendicular plane to the sketch - bool isDone = myFeature->data()->execState() == ModelAPI_StateDone; + bool isDone = ( myFeature->data()->execState() == ModelAPI_StateDone + || myFeature->data()->execState() == ModelAPI_StateMustBeUpdated ); return aValid && isDone; } -- 2.39.2