summaryrefslogtreecommitdiff
path: root/lib/elements/polyline.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-03-26 07:10:40 +0100
committerGitHub <noreply@github.com>2024-03-26 07:10:40 +0100
commit8e70f3d2feaab8a14f775a5ef84002bdab9688f0 (patch)
treef34d46ead8eb8d15317dc98de4113ccaf8acd0e9 /lib/elements/polyline.py
parentea394f6d3b7de3bc0818b6a9921f64e8bcbc4fbf (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.py8
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]