diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-03-15 15:48:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-15 15:48:30 +0100 |
| commit | 8d0633da33892a00eac3dcac985b186d4f4e7fa3 (patch) | |
| tree | 3c9919b44d7ca4d84d2f0c7b7c0821341e7a9b86 /lib/stitch_plan/stitch_plan.py | |
| parent | 164d5643085b7f1c22babcec8d35d31825e86d87 (diff) | |
do not lock trim commands (#2144)
Diffstat (limited to 'lib/stitch_plan/stitch_plan.py')
| -rw-r--r-- | lib/stitch_plan/stitch_plan.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py index 0038a106..25571578 100644 --- a/lib/stitch_plan/stitch_plan.py +++ b/lib/stitch_plan/stitch_plan.py @@ -45,10 +45,11 @@ def stitch_groups_to_stitch_plan(stitch_groups, collapse_len=None, min_stitch_le if color_block.color != stitch_group.color: # add a lock stitch to the last element of the previous group - lock_stitches = previous_stitch_group.get_lock_stitches("end", disable_ties) - if lock_stitches: - color_block.add_stitches(stitches=lock_stitches) - need_tie_in = True + if not need_tie_in: + lock_stitches = previous_stitch_group.get_lock_stitches("end", disable_ties) + if lock_stitches: + color_block.add_stitches(stitches=lock_stitches) + need_tie_in = True # end the previous block with a color change color_block.add_stitch(color_change=True) |
