summaryrefslogtreecommitdiff
path: root/lib/stitches/circular_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/circular_fill.py
parent0b12922d3f058f07020e6afdca26ad34e40918db (diff)
Add linear gradient fill (#2587)
Diffstat (limited to 'lib/stitches/circular_fill.py')
-rw-r--r--lib/stitches/circular_fill.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/circular_fill.py b/lib/stitches/circular_fill.py
index 351f4cf4..959759dc 100644
--- a/lib/stitches/circular_fill.py
+++ b/lib/stitches/circular_fill.py
@@ -73,7 +73,7 @@ def circular_fill(shape,
segments.append([(point.x, point.y) for point in coords])
fill_stitch_graph = build_fill_stitch_graph(shape, segments, starting_point, ending_point)
- if not graph_is_valid(fill_stitch_graph, shape, running_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)
@@ -124,7 +124,7 @@ def path_to_stitches(shape, path, travel_graph, fill_stitch_graph, running_stitc
# If the very first stitch is travel, we'll omit it in travel(), so add it here.
if not path[0].is_segment():
- stitches.append(Stitch(*path[0].nodes[0]))
+ stitches.append(Stitch(*path[0].nodes[0], tags={'auto_fill_travel'}))
for edge in path:
if edge.is_segment():