diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-03-26 07:10:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 07:10:40 +0100 |
| commit | 8e70f3d2feaab8a14f775a5ef84002bdab9688f0 (patch) | |
| tree | f34d46ead8eb8d15317dc98de4113ccaf8acd0e9 /lib/elements/polyline.py | |
| parent | ea394f6d3b7de3bc0818b6a9921f64e8bcbc4fbf (diff) | |
Add object based min stitch length (#2792)
* add object based min stitch length (overwrites global)
* add object based minimum jump stitch (overwrites global)
* rename patches to stitch_groups
Diffstat (limited to 'lib/elements/polyline.py')
| -rw-r--r-- | lib/elements/polyline.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/elements/polyline.py b/lib/elements/polyline.py index 4bc71dc0..9d17132a 100644 --- a/lib/elements/polyline.py +++ b/lib/elements/polyline.py @@ -94,10 +94,10 @@ class Polyline(EmbroideryElement): def validation_warnings(self): yield PolylineWarning(self.path[0][0][0]) - def to_stitch_groups(self, last_patch): - patch = StitchGroup(color=self.color, lock_stitches=(None, None)) + def to_stitch_groups(self, last_stitch_group): + stitch_group = StitchGroup(color=self.color, lock_stitches=(None, None)) for stitch in self.stitches: - patch.add_stitch(Point(*stitch)) + stitch_group.add_stitch(Point(*stitch)) - return [patch] + return [stitch_group] |
