]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #19181: Result appears when creating a parameter in the sketch
authorvsv <vsv@opencascade.com>
Wed, 27 May 2020 09:15:23 +0000 (12:15 +0300)
committervsv <vsv@opencascade.com>
Wed, 27 May 2020 09:15:23 +0000 (12:15 +0300)
src/ModuleBase/ModuleBase_Tools.cpp

index a3697ee37f0c09d7f889585b732882b2b708af8e..e190a8fab4ae9181e82fdb7583690ec2ad086b27 100644 (file)
@@ -1208,7 +1208,7 @@ FeaturePtr createParameter(const QString& theText)
   SessionPtr aMgr = ModelAPI_Session::get();
   std::shared_ptr<ModelAPI_Document> aDoc = aMgr->activeDocument();
 
-  aParameter = aDoc->addFeature("Parameter");
+  aParameter = aDoc->addFeature("Parameter", false);
   if (aParameter.get()) {
     AttributeStringPtr aNameAttr = aParameter->string("variable");
     aNameAttr->setValue(aParamName.toStdString());