summaryrefslogtreecommitdiff
path: root/lib/stitches/auto_fill.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-11-22 20:55:58 +0100
committerGitHub <noreply@github.com>2023-11-22 20:55:58 +0100
commit3bd92265b21d779c41377d2a06d13abaf628fe34 (patch)
tree276372bf131626f127045ce826bb8df25d89cb8d /lib/stitches/auto_fill.py
parent0b12922d3f058f07020e6afdca26ad34e40918db (diff)
Add linear gradient fill (#2587)
Diffstat (limited to 'lib/stitches/auto_fill.py')
-rw-r--r--lib/stitches/auto_fill.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py
index 83ff226b..24ce6610 100644
--- a/lib/stitches/auto_fill.py
+++ b/lib/stitches/auto_fill.py
@@ -78,7 +78,7 @@ def auto_fill(shape,
segments = [segment for row in rows for segment in row]
fill_stitch_graph = build_fill_stitch_graph(shape, segments, starting_point, ending_point)
- if not graph_is_valid(fill_stitch_graph, shape, max_stitch_length):
+ if not graph_is_valid(fill_stitch_graph):
return fallback(shape, running_stitch_length, running_stitch_tolerance)
travel_graph = build_travel_graph(fill_stitch_graph, shape, angle, underpath)
@@ -269,7 +269,7 @@ def add_edges_between_outline_nodes(graph, duplicate_every_other=False):
check_stop_flag()
-def graph_is_valid(graph, shape, max_stitch_length):
+def graph_is_valid(graph):
# The graph may be empty if the shape is so small that it fits between the
# rows of stitching. Certain small weird shapes can also cause a non-
# eulerian graph.