From c56180fb99b94878fb16ac6d78e0eec63bc58ce0 Mon Sep 17 00:00:00 2001 From: George Steel Date: Sun, 22 Jan 2023 14:50:26 -0500 Subject: fix reversed contour underlay --- lib/elements/satin_column.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/elements/satin_column.py') 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, -- cgit v1.2.3