PD: move refine model parameter to separate function
This commit is contained in:
@@ -51,6 +51,11 @@ FC_LOG_LEVEL_INIT("PartDesign",true,true)
|
||||
using namespace PartDesign;
|
||||
namespace sp = std::placeholders;
|
||||
|
||||
namespace PartDesign
|
||||
{
|
||||
extern bool getPDRefineModelParameter();
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
|
||||
PROPERTY_SOURCE(PartDesign::ShapeBinder, Part::Feature)
|
||||
@@ -381,9 +386,7 @@ void SubShapeBinder::setupObject() {
|
||||
_Version.setValue(2);
|
||||
checkPropertyStatus();
|
||||
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/PartDesign");
|
||||
this->Refine.setValue(hGrp->GetBool("RefineModel", true));
|
||||
this->Refine.setValue(getPDRefineModelParameter());
|
||||
}
|
||||
|
||||
App::DocumentObject* SubShapeBinder::getSubObject(const char* subname, PyObject** pyObj,
|
||||
|
||||
Reference in New Issue
Block a user