From: Sergey POKHODENKO Date: Tue, 26 May 2015 07:19:42 +0000 (+0300) Subject: Fix in ModuleBase_Operation::isValid(): check that exec state of feature is ModelAPI_... X-Git-Tag: V_1.2.0~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=82267848014c2ecc3ee54b7769b6f185b2523544;p=modules%2Fshaper.git Fix in ModuleBase_Operation::isValid(): check that exec state of feature is ModelAPI_StateMustBeUpdated --- 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; }