From 3bd92265b21d779c41377d2a06d13abaf628fe34 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 22 Nov 2023 20:55:58 +0100 Subject: Add linear gradient fill (#2587) --- lib/stitches/circular_fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stitches/circular_fill.py') 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(): -- cgit v1.2.3