Skip to content

Commit

Permalink
Draft: Disbled by default the use of the Support property in Draft ob…
Browse files Browse the repository at this point in the history
…jects
  • Loading branch information
yorikvanhavre committed May 20, 2019
1 parent 2f14667 commit d2d8a30
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/DraftTools.py
Expand Up @@ -274,7 +274,7 @@ def getStrings(self,addrot=None):
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'
Expand Down
16 changes: 16 additions & 0 deletions src/Mod/Draft/Resources/ui/preferences-draft.ui
Expand Up @@ -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>
Expand Down

0 comments on commit d2d8a30

Please sign in to comment.