summaryrefslogtreecommitdiff
path: root/lib/patterns.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2021-08-15 17:24:59 -0400
committerLex Neva <github.com@lexneva.name>2021-08-15 17:26:14 -0400
commitdd865008356d1e04b29a5eb59a8480900f255628 (patch)
treeeb4fa685d0d54b09219bef67f8c11f5834fdebe1 /lib/patterns.py
parentd807b12870515e23bd9ac4f8ce024a3070de2805 (diff)
keep underlay, underpath, and border travel
Diffstat (limited to 'lib/patterns.py')
-rw-r--r--lib/patterns.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/patterns.py b/lib/patterns.py
index d282dc9c..70700f18 100644
--- a/lib/patterns.py
+++ b/lib/patterns.py
@@ -52,6 +52,12 @@ def _apply_fill_patterns(patterns, patches):
elif stitch.has_tag('fill_row_start') or stitch.has_tag('fill_row_end'):
# keep points if they are the start or end of a fill stitch row
patch_points.append(stitch)
+ elif stitch.has_tag('auto_fill') and not stitch.has_tag('auto_fill_top'):
+ # keep auto-fill underlay
+ patch_points.append(stitch)
+ elif stitch.has_tag('auto_fill_travel'):
+ # keep travel stitches (underpath or travel around the border)
+ patch_points.append(stitch)
patch.stitches = patch_points