summaryrefslogtreecommitdiff
path: root/lib/elements
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-04-27 19:48:40 +0200
committerGitHub <noreply@github.com>2023-04-27 19:48:40 +0200
commit0d19853b1813e9989d1e4b0ff54a083e87660fca (patch)
treeefed41675806c539b3bb68eac343e68d04dc793d /lib/elements
parent18a66fa9c2855e3d0b8996e9b62eba4efaa057dc (diff)
stroke_method: running stitch fallback (#2241)
Diffstat (limited to 'lib/elements')
-rw-r--r--lib/elements/stroke.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index 8651133d..857b6746 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -480,15 +480,15 @@ class Stroke(EmbroideryElement):
stitches=path,
lock_stitches=lock_stitches,
force_lock_stitches=self.force_lock_stitches)
+ # simple satin
+ elif self.stroke_method == 'zigzag_stitch':
+ patch = self.simple_satin(path, self.zigzag_spacing, self.stroke_width, self.pull_compensation)
# running stitch
- elif self.stroke_method == 'running_stitch':
+ else:
patch = self.running_stitch(path, self.running_stitch_length, self.running_stitch_tolerance)
# bean stitch
if any(self.bean_stitch_repeats):
patch.stitches = self.do_bean_repeats(patch.stitches)
- # simple satin
- elif self.stroke_method == 'zigzag_stitch':
- patch = self.simple_satin(path, self.zigzag_spacing, self.stroke_width, self.pull_compensation)
if patch:
patches.append(patch)