diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-05-29 19:58:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-29 19:58:27 -0400 |
| commit | d3d5e45fa59893825927a50e0bfcaba22d7bb196 (patch) | |
| tree | ed970267c2a09ba56256c0b4c3aafa5bacabb049 /lib/stitch_plan/ties.py | |
| parent | bf86eace9ada3beb6ba58f6f3d982da0e391bd7c (diff) | |
| parent | b32a37178aaa1a31beb608d69504e6b4a822a1b5 (diff) | |
Merge pull request #171 from lexelby/lexelby-fix-grandma
fix grandma
Diffstat (limited to 'lib/stitch_plan/ties.py')
| -rw-r--r-- | lib/stitch_plan/ties.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/stitch_plan/ties.py b/lib/stitch_plan/ties.py index f9c5b721..6d07ac71 100644 --- a/lib/stitch_plan/ties.py +++ b/lib/stitch_plan/ties.py @@ -34,7 +34,9 @@ def add_ties(stitch_plan): need_tie_in = True new_stitches = [] for i, stitch in enumerate(color_block.stitches): - is_special = stitch.trim or stitch.jump or stitch.stop + # Tie before and after TRIMs, JUMPs, and color changes, but ignore + # the fake color change introduced by a "STOP after" (see stop.py). + is_special = stitch.trim or stitch.jump or (stitch.color_change and not stitch.stop) if is_special and not need_tie_in: add_tie_off(new_stitches) |
