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/tartan_fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stitches/tartan_fill.py') diff --git a/lib/stitches/tartan_fill.py b/lib/stitches/tartan_fill.py index c25bb435..521919a0 100644 --- a/lib/stitches/tartan_fill.py +++ b/lib/stitches/tartan_fill.py @@ -155,7 +155,7 @@ def _generate_herringbone_lines( staggered_lines = [] for i, line in enumerate(lines): linestring = LineString(line) - staggered_line = apply_stitches(linestring, fill.max_stitch_length, fill.staggers, fill.row_spacing, i) + staggered_line = apply_stitches(linestring, [fill.max_stitch_length], fill.staggers, fill.row_spacing, i) # make sure we do not ommit the very first or very last point (it would confuse our sorting algorithm) staggered_line = LineString([linestring.coords[0]] + list(staggered_line.coords) + [linestring.coords[-1]]) staggered_lines.append(staggered_line) @@ -205,7 +205,7 @@ def _generate_tartan_lines( staggered_lines = [] for i, line in enumerate(lines): linestring = LineString(line) - staggered_line = apply_stitches(linestring, fill.max_stitch_length, fill.staggers, fill.row_spacing, i) + staggered_line = apply_stitches(linestring, [fill.max_stitch_length], fill.staggers, fill.row_spacing, i) # make sure we do not ommit the very first or very last point (it would confuse our sorting algorithm) staggered_line = LineString([linestring.coords[0]] + list(staggered_line.coords) + [linestring.coords[-1]]) staggered_lines.append(staggered_line) -- cgit v1.2.3