From 8e70f3d2feaab8a14f775a5ef84002bdab9688f0 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 26 Mar 2024 07:10:40 +0100 Subject: 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 --- lib/elements/polyline.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/elements/polyline.py') 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] -- cgit v1.2.3