summaryrefslogtreecommitdiff
path: root/lib/output.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-05-28 22:15:07 -0400
committerLex Neva <github.com@lexneva.name>2018-05-28 22:39:59 -0400
commitf0c8c6a27b2ea2688bceaea0b86e1c182dee39c9 (patch)
treebf97c0e78cf79ee5cd0672f84e2fcc081e13a399 /lib/output.py
parent49b8c9f00b589ec4f2bac02a17b8d58583903e27 (diff)
don't do ties around the fake color change of a "STOP after"
Diffstat (limited to 'lib/output.py')
-rw-r--r--lib/output.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/output.py b/lib/output.py
index b94d7387..84128a25 100644
--- a/lib/output.py
+++ b/lib/output.py
@@ -32,7 +32,7 @@ def get_flags(stitch):
if stitch.trim:
flags |= libembroidery.TRIM
- if stitch.stop:
+ if stitch.color_change:
flags |= libembroidery.STOP
return flags
@@ -108,13 +108,10 @@ def write_embroidery_file(file_path, stitch_plan, svg):
add_thread(pattern, make_thread(color_block.color))
for stitch in color_block:
- if stitch.stop and stitch is not color_block.last_stitch:
- # A STOP stitch that is not at the end of a color block
- # occurs when the user specified "STOP after". "STOP" is the
- # same thing as a color change, and the user will assign a
- # special color at the machine that tells it to pause after.
- # We need to add another copy of the same color here so that
- # the stitches after the STOP are still the same color.
+ if stitch.stop:
+ # This is the start of the extra color block added by the
+ # "STOP after" handler (see stitch_plan/stop.py). Assign it
+ # the same color.
add_thread(pattern, make_thread(color_block.color))
flags = get_flags(stitch)