diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-05-08 17:17:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-08 17:17:51 +0200 |
| commit | 59ac45d3212fdfa4615a671738cfa1d970e02782 (patch) | |
| tree | a0fd94149a3ee3c533807dc135476fdab65f75c2 /lib | |
| parent | c25bf5370ccb415c689295e541d8bbccb4684d5e (diff) | |
do not filter lock stitches (#2277)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stitch_plan/color_block.py | 3 |
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: |
