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/extensions/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/extensions/base.py') diff --git a/lib/extensions/base.py b/lib/extensions/base.py index e0bf4131..4d5aacfe 100644 --- a/lib/extensions/base.py +++ b/lib/extensions/base.py @@ -124,16 +124,16 @@ class InkstitchExtension(inkex.EffectExtension): return False def elements_to_stitch_groups(self, elements): - patches = [] + stitch_groups = [] for element in elements: - if patches: - last_patch = patches[-1] + if stitch_groups: + last_stitch_group = stitch_groups[-1] else: - last_patch = None + last_stitch_group = None - patches.extend(element.embroider(last_patch)) + stitch_groups.extend(element.embroider(last_stitch_group)) - return patches + return stitch_groups def get_inkstitch_metadata(self): return InkStitchMetadata(self.svg) -- cgit v1.2.3