summaryrefslogtreecommitdiff
path: root/lib/extensions/stitch_plan_preview.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-03-31 17:10:40 +0200
committerGitHub <noreply@github.com>2023-03-31 17:10:40 +0200
commit06b6f976a9975c9860fcc0a29e6e9c3ea174ba9d (patch)
tree1a423bce337baa011b1412843307ebed88d303eb /lib/extensions/stitch_plan_preview.py
parent98f4bc43de2869b26a52dbfd02968dd69425d8b8 (diff)
Command options (#2160)
* letters to font: add visual command import option * add visual command option to stitch plan preview
Diffstat (limited to 'lib/extensions/stitch_plan_preview.py')
-rw-r--r--lib/extensions/stitch_plan_preview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/extensions/stitch_plan_preview.py b/lib/extensions/stitch_plan_preview.py
index e5d22fa7..fbfe3628 100644
--- a/lib/extensions/stitch_plan_preview.py
+++ b/lib/extensions/stitch_plan_preview.py
@@ -22,6 +22,7 @@ class StitchPlanPreview(InkstitchExtension):
self.arg_parser.add_argument("-v", "--layer-visibility", type=int, default=0, dest="layer_visibility")
self.arg_parser.add_argument("-n", "--needle-points", type=Boolean, default=False, dest="needle_points")
self.arg_parser.add_argument("-i", "--insensitive", type=Boolean, default=False, dest="insensitive")
+ self.arg_parser.add_argument("-c", "--visual-commands", type=Boolean, default="symbols", dest="visual_commands")
def effect(self):
# delete old stitch plan
@@ -33,7 +34,7 @@ class StitchPlanPreview(InkstitchExtension):
return
realistic = False
- visual_commands = True
+ visual_commands = self.options.visual_commands
self.metadata = self.get_inkstitch_metadata()
collapse_len = self.metadata['collapse_len_mm']
min_stitch_len = self.metadata['min_stitch_len_mm']