diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-11-30 17:29:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-30 17:29:09 +0100 |
| commit | 13ddafb2adde768643f5f9f5f3a891216000dc46 (patch) | |
| tree | 9d982142a80a88d4793e8fe0d3e47b1c94b949fc /lib/elements | |
| parent | a980ed0dbc32e2f8039ee7a563f3c1ffa6c8a05b (diff) | |
add bean stitch option to manual stitch (#3312)
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/stroke.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py index 10aa06b7..c0da08fe 100644 --- a/lib/elements/stroke.py +++ b/lib/elements/stroke.py @@ -97,7 +97,7 @@ class Stroke(EmbroideryElement): 'A value of 2 would quintuple each stitch, etc.\n\n' 'A pattern with various repeats can be created with a list of values separated by a space.'), type='str', - select_items=[('stroke_method', 'running_stitch'), ('stroke_method', 'ripple_stitch')], + select_items=[('stroke_method', 'running_stitch'), ('stroke_method', 'ripple_stitch'), ('stroke_method', 'manual_stitch')], default=0, sort_index=3) def bean_stitch_repeats(self): @@ -612,6 +612,9 @@ class Stroke(EmbroideryElement): lock_stitches=lock_stitches, force_lock_stitches=self.force_lock_stitches ) + # apply bean stitch settings + if any(self.bean_stitch_repeats): + stitch_group.stitches = self.do_bean_repeats(stitch_group.stitches) # simple satin elif self.stroke_method == 'zigzag_stitch': stitch_group = self.simple_satin(path, self.zigzag_spacing, self.stroke_width, self.pull_compensation) |
