]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix in ModuleBase_Operation::isValid(): check that exec state of feature is ModelAPI_...
authorSergey POKHODENKO <sergey.pokhodenko@opencascade.com>
Tue, 26 May 2015 07:19:42 +0000 (10:19 +0300)
committerSergey POKHODENKO <sergey.pokhodenko@opencascade.com>
Tue, 26 May 2015 07:35:37 +0000 (10:35 +0300)
src/ModuleBase/ModuleBase_Operation.cpp

index 8b5ed2d24abe05e4280ec276f4b45810756e8088..fc4e35945d538189b167bb51fa8dc1aaaa563cdd 100644 (file)
@@ -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;
 }