From 5a9ae03dc14ea5b68a99581c21a5d8085f1a3243 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 7 Nov 2025 17:10:03 +0100 Subject: Running stitch length sequence (#4034) * allow running stitch length sequences * contour fill: fix error message for long stitch length * satin: fix center underlay stitch length --- lib/stitches/meander_fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stitches/meander_fill.py') diff --git a/lib/stitches/meander_fill.py b/lib/stitches/meander_fill.py index 87c52e17..1883c97f 100644 --- a/lib/stitches/meander_fill.py +++ b/lib/stitches/meander_fill.py @@ -179,10 +179,10 @@ def post_process(points, shape, original_shape, fill): smoothed_points = [InkStitchPoint.from_tuple(point) for point in smoothed_points] if fill.zigzag_spacing > 0: - stitches = even_running_stitch(smoothed_points, fill.zigzag_spacing / 2, fill.running_stitch_tolerance) + stitches = even_running_stitch(smoothed_points, [fill.zigzag_spacing / 2], fill.running_stitch_tolerance) stitches = zigzag_stitch(stitches, fill.zigzag_spacing, fill.zigzag_width, (0, 0)) else: - stitches = even_running_stitch(smoothed_points, fill.running_stitch_length, fill.running_stitch_tolerance) + stitches = even_running_stitch(smoothed_points, [fill.running_stitch_length], fill.running_stitch_tolerance) if fill.clip: # the stitch path may have self intersections -- cgit v1.2.3