diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-04-19 07:11:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-19 07:11:57 +0200 |
| commit | b009a5355e7ceea477ea55eacba2149a9398b37e (patch) | |
| tree | 3061490b8f44638676b82bcc1adbbe11191c94c2 /lib/extensions/redwork.py | |
| parent | 54bc44daaf62ed1e65d7eb48e5cd245c252c14c2 (diff) | |
duplicate-consistant autoroute element selection (#3638)
Diffstat (limited to 'lib/extensions/redwork.py')
| -rw-r--r-- | lib/extensions/redwork.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/extensions/redwork.py b/lib/extensions/redwork.py index ee0ad141..53c6131c 100644 --- a/lib/extensions/redwork.py +++ b/lib/extensions/redwork.py @@ -162,9 +162,11 @@ class Redwork(InkstitchExtension): def _insert_element(self, index, path, group, style, transform, redwork=True): if redwork: path_id = self.svg.get_unique_id('redwork_') + path_type = 'redwork-top' label = _("Redwork") + f' {index}' else: path_id = self.svg.get_unique_id('underpath_') + path_type = 'redwork-underpath' label = _("Redwork Underpath") + f' {index}' element = PathElement( @@ -177,6 +179,7 @@ class Redwork(InkstitchExtension): element.label = label element.set('inkstitch:running_stitch_length_mm', self.options.redwork_running_stitch_length_mm) + element.set('inkstitch:path_type', path_type) if redwork: element.set('inkstitch:bean_stitch_repeats', self.options.redwork_bean_stitch_repeats) |
