From: mpv Date: Wed, 13 Feb 2019 11:20:34 +0000 (+0300) Subject: An additional fix for the issue 2861 : Can't use a parameter created on the fly in... X-Git-Tag: V9_3_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1eb005753589bfb86597e1c7246947eba6070b55;p=modules%2Fshaper.git An additional fix for the issue 2861 : Can't use a parameter created on the fly in another parameter expression --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 337161e6f..bf42687a9 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1026,7 +1026,8 @@ FeaturePtr Model_Document::addFeature(std::string theID, const bool theMakeCurre } } // #2861: if the parameter is added, add it after parameters existing in the list - if (aCurrent.get() && aFeature->getKind() == "Parameter") { + if (aCurrent.get() && + (aFeature->getKind() == "Parameter" || aFeature->getKind() == "ParametersMgr")) { int anIndex = kUNDEFINED_FEATURE_INDEX; for(FeaturePtr aNextFeat = myObjs->nextFeature(aCurrent, anIndex); aNextFeat.get() && aNextFeat->getKind() == "Parameter";