diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-05-28 22:15:07 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-05-28 22:39:59 -0400 |
| commit | f0c8c6a27b2ea2688bceaea0b86e1c182dee39c9 (patch) | |
| tree | bf97c0e78cf79ee5cd0672f84e2fcc081e13a399 /lib/stitch_plan/stitch_plan.py | |
| parent | 49b8c9f00b589ec4f2bac02a17b8d58583903e27 (diff) | |
don't do ties around the fake color change of a "STOP after"
Diffstat (limited to 'lib/stitch_plan/stitch_plan.py')
| -rw-r--r-- | lib/stitch_plan/stitch_plan.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py index f7dfb307..2a35f9aa 100644 --- a/lib/stitch_plan/stitch_plan.py +++ b/lib/stitch_plan/stitch_plan.py @@ -39,10 +39,10 @@ def patches_to_stitch_plan(patches, collapse_len=3.0 * PIXELS_PER_MM): color_block.add_stitch(patch.stitches[0].x, patch.stitches[0].y, jump=True) else: - # add a color change (only if the last stitch wasn't a "STOP after") - if not color_block.last_stitch.stop: + # add a color change (only if we didn't just do a "STOP after") + if not color_block.last_stitch.color_change: stitch = color_block.last_stitch.copy() - stitch.stop = True + stitch.color_change = True color_block.add_stitch(stitch) color_block = stitch_plan.new_color_block() |
