diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-07-28 20:10:27 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-07-28 20:10:27 -0400 |
| commit | f8f108367abf71e2e8a2eb7718a2759568337c53 (patch) | |
| tree | 8d38ca9cbcefd258f060443b06f85309354d2bd5 /lib | |
| parent | cdb8fdb1339476e36ad2e294283eec33d13b2d3d (diff) | |
fix simple satin
Diffstat (limited to 'lib')
| -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 e086ccd9..bc2ee54c 100644 --- a/lib/elements/stroke.py +++ b/lib/elements/stroke.py @@ -149,7 +149,6 @@ class Stroke(EmbroideryElement): repeated_path.extend(this_path) stitches = running_stitch(repeated_path, stitch_length) - stitches = bean_stitch(stitches, self.bean_stitch_repeats) return Patch(self.color, stitches) @@ -163,6 +162,10 @@ class Stroke(EmbroideryElement): patch = Patch(color=self.color, stitches=path, stitch_as_is=True) elif self.is_running_stitch(): patch = self.running_stitch(path, self.running_stitch_length) + + if self.bean_stitch_repeats > 0: + patch.stitches = bean_stitch(patch.stitches, self.bean_stitch_repeats) + else: patch = self.simple_satin(path, self.zigzag_spacing, self.stroke_width) |
