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/extensions/base.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/extensions/base.py')
| -rw-r--r-- | lib/extensions/base.py | 12 |
1 files changed, 6 insertions, 6 deletions
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) |
