From: vsv Date: Wed, 27 May 2020 09:15:23 +0000 (+0300) Subject: bos #19181: Result appears when creating a parameter in the sketch X-Git-Tag: V9_5_0rc1~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b8b95142d694359c9c4fbd2766f04815ad4aa4d6;p=modules%2Fshaper.git bos #19181: Result appears when creating a parameter in the sketch --- diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index a3697ee37..e190a8fab 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -1208,7 +1208,7 @@ FeaturePtr createParameter(const QString& theText) SessionPtr aMgr = ModelAPI_Session::get(); std::shared_ptr aDoc = aMgr->activeDocument(); - aParameter = aDoc->addFeature("Parameter"); + aParameter = aDoc->addFeature("Parameter", false); if (aParameter.get()) { AttributeStringPtr aNameAttr = aParameter->string("variable"); aNameAttr->setValue(aParamName.toStdString());