summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2023-06-12 09:49:00 -0400
committerGitHub <noreply@github.com>2023-06-12 09:49:00 -0400
commit7f7d66e51e00e2d32dca857a176d7d80715e9d49 (patch)
tree3402a5287baf30e01101fe6966dd550007eb913b
parent10bfc3c0a8828a209159b6c959844549273c9cbe (diff)
parentc15d2b46539c50aeb8f59367ac13267b6d22f628 (diff)
Merge pull request #2366 from inkstitch/george-steel/fix-guided-fill
fix crash in guided fill
-rw-r--r--lib/stitches/guided_fill.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/guided_fill.py b/lib/stitches/guided_fill.py
index b733e7a0..7b80c021 100644
--- a/lib/stitches/guided_fill.py
+++ b/lib/stitches/guided_fill.py
@@ -60,7 +60,7 @@ def fallback(shape, guideline, row_spacing, max_stitch_length, running_stitch_le
def path_to_stitches(path, travel_graph, fill_stitch_graph, stitch_length, running_stitch_length, running_stitch_tolerance, skip_last):
- path = collapse_sequential_outline_edges(path)
+ path = collapse_sequential_outline_edges(path, fill_stitch_graph)
stitches = []
@@ -89,7 +89,7 @@ def path_to_stitches(path, travel_graph, fill_stitch_graph, stitch_length, runni
travel_graph.remove_edges_from(fill_stitch_graph[edge[0]][edge[1]]['segment'].get('underpath_edges', []))
else:
- stitches.extend(travel(travel_graph, edge[0], edge[1], running_stitch_length, running_stitch_tolerance, skip_last))
+ stitches.extend(travel(travel_graph, edge, running_stitch_length, running_stitch_tolerance, skip_last))
return stitches