From b8b95142d694359c9c4fbd2766f04815ad4aa4d6 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 27 May 2020 12:15:23 +0300 Subject: [PATCH] bos #19181: Result appears when creating a parameter in the sketch --- src/ModuleBase/ModuleBase_Tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.2