diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-02-27 16:05:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 16:05:52 +0100 |
| commit | ec076315bb8b5f901670fee1c06db028242b21fd (patch) | |
| tree | 17cd3413f48cad338d95452d2d0aac96aac44d01 /lib/elements/fill_stitch.py | |
| parent | ed4aa55a733986436853e2ee7ad22f757b09fcb1 (diff) | |
Various lock stitch options (#2006)
Co-authored-by: Lex Neva
Diffstat (limited to 'lib/elements/fill_stitch.py')
| -rw-r--r-- | lib/elements/fill_stitch.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index 1897c8bf..8eb12af2 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -673,7 +673,10 @@ class FillStitch(EmbroideryElement): self.flip, self.staggers, self.skip_last) - return [StitchGroup(stitches=stitch_list, color=self.color) for stitch_list in stitch_lists] + return [StitchGroup(stitches=stitch_list, + color=self.color, + force_lock_stitches=self.force_lock_stitches, + lock_stitches=self.lock_stitches) for stitch_list in stitch_lists] def do_underlay(self, shape, starting_point): stitch_groups = [] @@ -681,6 +684,7 @@ class FillStitch(EmbroideryElement): underlay = StitchGroup( color=self.color, tags=("auto_fill", "auto_fill_underlay"), + lock_stitches=self.lock_stitches, stitches=auto_fill( shape, self.fill_underlay_angle[i], @@ -702,6 +706,8 @@ class FillStitch(EmbroideryElement): stitch_group = StitchGroup( color=self.color, tags=("auto_fill", "auto_fill_top"), + force_lock_stitches=self.force_lock_stitches, + lock_stitches=self.lock_stitches, stitches=auto_fill( shape, self.angle, @@ -755,7 +761,9 @@ class FillStitch(EmbroideryElement): stitch_group = StitchGroup( color=self.color, tags=("auto_fill", "auto_fill_top"), - stitches=stitches) + stitches=stitches, + force_lock_stitches=self.force_lock_stitches, + lock_stitches=self.lock_stitches,) stitch_groups.append(stitch_group) return stitch_groups @@ -770,6 +778,8 @@ class FillStitch(EmbroideryElement): stitch_group = StitchGroup( color=self.color, tags=("guided_fill", "auto_fill_top"), + force_lock_stitches=self.force_lock_stitches, + lock_stitches=self.lock_stitches, stitches=guided_fill( shape, guide_line.geoms[0], |
