summaryrefslogtreecommitdiff
path: root/lib/elements/satin_column.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-06-27 07:44:34 +0200
committerGitHub <noreply@github.com>2023-06-27 07:44:34 +0200
commit52ba1afb7532514adee18939f37c51805642f235 (patch)
treec6544a0312ead30409fa27ffa1619ca70badce15 /lib/elements/satin_column.py
parent4c562a71273d44e05efe64d4d37bd02c61448691 (diff)
filter satins for auto route satin (#2389)
Diffstat (limited to 'lib/elements/satin_column.py')
-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 dc883dea..e48973ac 100644
--- a/lib/elements/satin_column.py
+++ b/lib/elements/satin_column.py
@@ -830,6 +830,8 @@ class SatinColumn(EmbroideryElement):
def center_line(self):
# similar technique to do_center_walk()
center_walk = [p[0] for p in self.plot_points_on_rails(self.zigzag_spacing, (0, 0), (-0.5, -0.5))]
+ if len(center_walk) < 2:
+ center_walk = [center_walk[0], center_walk[0]]
return shgeo.LineString(center_walk)
def offset_points(self, pos1, pos2, offset_px, offset_proportional):