summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-10-22 18:48:04 +0200
committerGitHub <noreply@github.com>2025-10-22 18:48:04 +0200
commite34b5efe44ad1c2c8df995c593641fafdf518340 (patch)
tree8edcd0e8f644560a6abb2f3bed563e313786d968 /lib
parent2bd45c6c41bf609165ed27904daa5bbd18ce23a2 (diff)
satin: do no error on one point zigzag underlay segment (#3996)
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/satin_column.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py
index 163d6979..6babc851 100644
--- a/lib/elements/satin_column.py
+++ b/lib/elements/satin_column.py
@@ -1437,6 +1437,8 @@ class SatinColumn(EmbroideryElement):
if not end_point:
stitch_groups.append(self._generate_zigzag_stitch_group(points))
continue
+ if len(points) == 1:
+ points.append(points[0])
zigzag_line = shgeo.LineString(points)
start, end = self._split_linestring_at_end_point(zigzag_line, end_point)
start_groups.append(self._generate_zigzag_stitch_group([Stitch(*point) for point in start.coords]))