]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2750: Wrong GUI of Filling property panel
authorazv <azv@opencascade.com>
Tue, 27 Nov 2018 10:20:26 +0000 (13:20 +0300)
committerazv <azv@opencascade.com>
Tue, 27 Nov 2018 10:20:26 +0000 (13:20 +0300)
Do not restore default parameters of Filling in initAttributes() if the related attributes are already initialized.

src/BuildPlugin/BuildPlugin_Filling.cpp

index 0dec8a14d2b85b32e76c75dd5a5be85c5b922969..73da8375d301aeaafdabda27760f67cb3d91db38 100644 (file)
@@ -67,8 +67,8 @@ void BuildPlugin_Filling::initAttributes()
   data()->addAttribute(TOLERANCE_3D_ID(), ModelAPI_AttributeDouble::typeId());
   data()->addAttribute(APPROXIMATION_ID(), ModelAPI_AttributeBoolean::typeId());
 
-  restoreDefaultParameters();
-  string(ADVANCED_OPTIONS_ID())->setValue("");
+  if (string(ADVANCED_OPTIONS_ID())->value().empty())
+    restoreDefaultParameters();
 }
 
 //=================================================================================================