From: mpv Date: Fri, 18 Sep 2015 12:37:03 +0000 (+0300) Subject: Fix for issue #1000 X-Git-Tag: V_1.4.0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d28bcbab2f3ed0e40295e64f4e836caebc19fca;p=modules%2Fshaper.git Fix for issue #1000 --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index a9e917215..69b345114 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -551,7 +551,8 @@ void Model_Update::updateArguments(FeaturePtr theFeature) { aState = ModelAPI_StateInvalidArgument; } } else if (aSel->isInvalid()) { // not needed to update, but invalid (stated previously) - aState = ModelAPI_StateInvalidArgument; + if (isObligatory) + aState = ModelAPI_StateInvalidArgument; } } } @@ -577,7 +578,8 @@ void Model_Update::updateArguments(FeaturePtr theFeature) { aState = ModelAPI_StateInvalidArgument; } } else if (aSelAttr->isInvalid()) { - aState = ModelAPI_StateInvalidArgument; + if (isObligatory) + aState = ModelAPI_StateInvalidArgument; } } }