]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #1000
authormpv <mpv@opencascade.com>
Fri, 18 Sep 2015 12:37:03 +0000 (15:37 +0300)
committermpv <mpv@opencascade.com>
Fri, 18 Sep 2015 12:37:03 +0000 (15:37 +0300)
src/Model/Model_Update.cpp

index a9e9172152c301caa7c3a5fbbd3636d1978cef6e..69b34511427b86548183f9f238b290f550032646 100644 (file)
@@ -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;
           }
         }
       }