PartDesign: Enable compounds for PD bodies

This commit is contained in:
Max Wilfinger
2025-08-09 21:32:44 +02:00
committed by Kacper Donat
parent ed770bf849
commit 84afc15c91
2 changed files with 17 additions and 39 deletions

View File

@@ -68,6 +68,22 @@
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="checkAllowCompoundBody">
<property name="text">
<string>Allow multiple solids in Part Design bodies by default</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>AllowCompoundDefault</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/PartDesign</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@@ -216,44 +232,6 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBoxExperimental">
<property name="enabled">
<bool>true</bool>
</property>
<property name="title">
<string>Experimental</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="warningLabel">
<property name="text">
<string>These settings are experimental and may result in decreased stability, problems and undefined behaviors</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="checkAllowCompoundBody">
<property name="text">
<string>Allow multiple solids in Part Design bodies by default</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>AllowCompoundDefault</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/PartDesign</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer>
<property name="orientation">

View File

@@ -50,7 +50,7 @@ Body::Body() {
.GetUserParameter()
.GetGroup("BaseApp/Preferences/Mod/PartDesign");
auto allowCompoundDefaultValue = hGrp->GetBool("AllowCompoundDefault", false);
auto allowCompoundDefaultValue = hGrp->GetBool("AllowCompoundDefault", true);
ADD_PROPERTY(AllowCompound, (allowCompoundDefaultValue));
}