From e154a9022569506af8546298b06adaa31b527a8a Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 1 Apr 2018 15:40:51 -0400 Subject: fix thread handling with 'STOP after' --- inkstitch/__init__.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/inkstitch/__init__.py b/inkstitch/__init__.py index e72a59b5..2e7a55f6 100644 --- a/inkstitch/__init__.py +++ b/inkstitch/__init__.py @@ -274,12 +274,13 @@ 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: - # 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 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. add_thread(pattern, make_thread(color_block.color)) flags = get_flags(stitch) -- cgit v1.2.3 From 6e9f3ad0bbaba6315506c2f9b393d276357b12e5 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 1 Apr 2018 20:47:09 -0400 Subject: use latest embroidermodder to fix exploding PES --- embroidermodder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embroidermodder b/embroidermodder index 406d261a..1a3faa97 160000 --- a/embroidermodder +++ b/embroidermodder @@ -1 +1 @@ -Subproject commit 406d261a1a2a3d046c77aaef2161e67e00672f39 +Subproject commit 1a3faa9747fcff1cce07c4c58b54b1e780017f56 -- cgit v1.2.3 From a4ba6d06e093d14dc04aa6cfe7cf444204fc2a8e Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 1 Apr 2018 21:39:12 -0400 Subject: get new windows-libembroidery.tar.gz --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bbcd2240..923e9773 100644 --- a/.travis.yml +++ b/.travis.yml @@ -77,7 +77,7 @@ install: export WINEDEBUG=-all - wget -q https://github.com/lexelby/inkstitch-build-objects/releases/download/v1.0.0/windows-libembroidery.tar.gz + wget -q https://github.com/lexelby/inkstitch-build-objects/releases/download/v1.1.0/windows-libembroidery.tar.gz tar zxf windows-libembroidery.tar.gz rm windows-libembroidery.tar.gz -- cgit v1.2.3