Draft: Disbled by default the use of the Support property in Draft objects

This commit is contained in:
Yorik van Havre
2019-05-20 12:27:38 -03:00
parent 2f14667cea
commit d2d8a30cb2
2 changed files with 17 additions and 1 deletions

View File

@@ -274,7 +274,7 @@ class DraftTool:
qr = '('+str(qr[0])+','+str(qr[1])+','+str(qr[2])+','+str(qr[3])+')'
# support object
if self.support:
if self.support and FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetBool("useSupport",False):
sup = 'FreeCAD.ActiveDocument.getObject("' + self.support.Name + '")'
else:
sup = 'None'

View File

@@ -318,6 +318,22 @@ Values with differences below this value will be treated as same. This value wil
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="checkBox_2">
<property name="toolTip">
<string>If this option is set, when creating Draft objects on top of an existing face of another object, the &quot;Support&quot; property of the Draft object will be set to the base object. This was the standard behaviour before FreeCAD 0.19</string>
</property>
<property name="text">
<string>Set the Support properry when possible</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>useSupport</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Draft</cstring>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>