X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Update.cpp;h=2100f48b902b1210a53f7565de78ca08cac6a770;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=25c0cd9783f1f1393325751fb1ebd2b4c3681551;hpb=fa13a42c117feb6913743ba9dea914b0b234cd8a;p=modules%2Fshaper.git diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 25c0cd978..2100f48b9 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2021 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -905,8 +905,7 @@ void Model_Update::updateArguments(FeaturePtr theFeature) { bool isObligatory = aFactory->isCase(theFeature, theFeature->data()->id(aSel)); if (isObligatory) aState = ModelAPI_StateInvalidArgument; - } else if (theFeature->getKind() == "Sketch" && aSel->id() == "External" && - aSel->isInitialized()) { + } else if (aSel->isInitialized()) { // #19703 : if sketch plane was selected, but after context disappears, it must become invalid aSel->update(); if (aSel->isInvalid()) {