summaryrefslogtreecommitdiff
path: root/lib/elements
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2023-01-22 14:50:26 -0500
committerGeorge Steel <george.steel@gmail.com>2023-01-22 14:50:26 -0500
commitc56180fb99b94878fb16ac6d78e0eec63bc58ce0 (patch)
tree3ca2dcd689839ef3a8790b6bff5dc7c0f243ba05 /lib/elements
parent19c31d2ad59ba8e6653dce60ec81ccba5fed677f (diff)
fix reversed contour underlay
Diffstat (limited to 'lib/elements')
-rw-r--r--lib/elements/satin_column.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py
index 12261e15..e935a9d7 100644
--- a/lib/elements/satin_column.py
+++ b/lib/elements/satin_column.py
@@ -873,9 +873,11 @@ class SatinColumn(EmbroideryElement):
pairs = self.plot_points_on_rails(
self.contour_underlay_stitch_length,
-self.contour_underlay_inset_px, -self.contour_underlay_inset_percent/100)
- stitches = [p[0] for p in pairs] + [p[1] for p in reversed(pairs)]
+
if self._center_walk_is_odd():
- stitches = list(reversed(stitches))
+ stitches = [p[0] for p in reversed(pairs)] + [p[1] for p in pairs]
+ else:
+ stitches = [p[1] for p in pairs] + [p[0] for p in reversed(pairs)]
return StitchGroup(
color=self.color,