Draft.ShapeString : add option to choose wires or faces output

This commit is contained in:
tomate44
2021-04-05 12:20:04 +02:00
parent 252d30e40f
commit c48ec7cff2

View File

@@ -55,6 +55,9 @@ class ShapeString(DraftObject):
_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
@@ -91,8 +94,12 @@ class ShapeString(DraftObject):
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: