summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-05-08 17:17:51 +0200
committerGitHub <noreply@github.com>2023-05-08 17:17:51 +0200
commit59ac45d3212fdfa4615a671738cfa1d970e02782 (patch)
treea0fd94149a3ee3c533807dc135476fdab65f75c2 /lib
parentc25bf5370ccb415c689295e541d8bbccb4684d5e (diff)
do not filter lock stitches (#2277)
Diffstat (limited to 'lib')
-rw-r--r--lib/stitch_plan/color_block.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stitch_plan/color_block.py b/lib/stitch_plan/color_block.py
index 2f387460..9d474f80 100644
--- a/lib/stitch_plan/color_block.py
+++ b/lib/stitch_plan/color_block.py
@@ -110,6 +110,9 @@ class ColorBlock(object):
if stitches[-1].jump or stitch.stop or stitch.trim or stitch.color_change:
# Don't consider jumps, stops, color changes, or trims as candidates for filtering
pass
+ elif 'lock_stitch' in stitch.tags:
+ # do not filter specific stitches
+ pass
else:
length = (stitch - stitches[-1]).length()
if length <= min_stitch_len * PIXELS_PER_MM: