Skip to content

Commit

Permalink
Draft.ShapeString : add option to choose wires or faces output
Browse files Browse the repository at this point in the history
  • Loading branch information
tomate44 committed Apr 5, 2021
1 parent e66ed26 commit 0f9ed15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Mod/Draft/draftobjects/shapestring.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def __init__(self, obj):
_tip = QT_TRANSLATE_NOOP("App::Property", "Inter-character spacing")
obj.addProperty("App::PropertyLength", "Tracking", "Draft", _tip)

_tip = QT_TRANSLATE_NOOP("App::Property", "Fill letters")
obj.addProperty("App::PropertyBool", "FillLetters", "Draft", _tip).FillLetters = True

def execute(self, obj):
import Part
# import OpenSCAD2Dgeom
Expand Down Expand Up @@ -91,8 +94,12 @@ def execute(self, obj):
else:
sticky = True

fill = True
if hasattr(obj, "FillLetters"):
fill = obj.FillLetters

for char in CharList:
if sticky:
if sticky or (not fill):
for CWire in char:
SSChars.append(CWire)
else:
Expand Down

0 comments on commit 0f9ed15

Please sign in to comment.