From 3d28bcbab2f3ed0e40295e64f4e836caebc19fca Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 18 Sep 2015 15:37:03 +0300 Subject: [PATCH] Fix for issue #1000 --- src/Model/Model_Update.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } } } -- 2.39.2