PartDesign: Remove use of user parameters from Body constructor

This commit is contained in:
marioalexis
2025-08-19 08:50:11 -03:00
committed by Kacper Donat
parent 564e79b890
commit f176172faa
2 changed files with 8 additions and 9 deletions

View File

@@ -41,18 +41,11 @@ using namespace PartDesign;
PROPERTY_SOURCE(PartDesign::Body, Part::BodyBase)
Body::Body() {
Body::Body()
{
ADD_PROPERTY_TYPE(AllowCompound, (false), "Experimental", App::Prop_None, "Allow multiple solids in Body (experimental)");
_GroupTouched.setStatus(App::Property::Output, true);
static Base::Reference<ParameterGrp> hGrp = App::GetApplication()
.GetUserParameter()
.GetGroup("BaseApp/Preferences/Mod/PartDesign");
auto allowCompoundDefaultValue = hGrp->GetBool("AllowCompoundDefault", true);
ADD_PROPERTY(AllowCompound, (allowCompoundDefaultValue));
}
/*