summaryrefslogtreecommitdiff
path: root/lib/elements/satin_column.py
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2023-01-29 21:42:30 -0500
committerGitHub <noreply@github.com>2023-01-29 21:42:30 -0500
commita2c6d5fbcbbfaffb0604705c5530310649a8db82 (patch)
tree7aedd594a9fe5f25c9e5aa8078c7b91ebcd90a54 /lib/elements/satin_column.py
parent73b1fc17cdf3cb1c2477bb0f90b080f52bf4b327 (diff)
parent581ecd486999045625995db031e2dc7d55bbe907 (diff)
Merge pull request #2027 from inkstitch/george-steel/fix-running-stitch
Replace running stitch algorithm to give consistent stitch lengths
Diffstat (limited to 'lib/elements/satin_column.py')
-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 1841bba1..be614a04 100644
--- a/lib/elements/satin_column.py
+++ b/lib/elements/satin_column.py
@@ -877,9 +877,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,