From e70a0c26019e52486e129ca0de3a36efcfb60a2d Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 27 Nov 2018 13:20:26 +0300 Subject: [PATCH] Issue #2750: Wrong GUI of Filling property panel Do not restore default parameters of Filling in initAttributes() if the related attributes are already initialized. --- src/BuildPlugin/BuildPlugin_Filling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BuildPlugin/BuildPlugin_Filling.cpp b/src/BuildPlugin/BuildPlugin_Filling.cpp index 0dec8a14d..73da8375d 100644 --- a/src/BuildPlugin/BuildPlugin_Filling.cpp +++ b/src/BuildPlugin/BuildPlugin_Filling.cpp @@ -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(); } //================================================================================================= -- 2.39.2