summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-11-30 17:36:12 +0100
committerGitHub <noreply@github.com>2024-11-30 17:36:12 +0100
commite0095ea846d6fd1920906e80ae1bdba24b2d6850 (patch)
treebc2c471ac9beff33d25568653c9bcb7b0d0161ba /lib/extensions
parent13ddafb2adde768643f5f9f5f3a891216000dc46 (diff)
Lettering sortable trims (#3308)
* add trims as requested through user interface for each color block * handle commands better
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/lettering_set_color_sort_index.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/extensions/lettering_set_color_sort_index.py b/lib/extensions/lettering_set_color_sort_index.py
index 3fb33094..f7b447ea 100644
--- a/lib/extensions/lettering_set_color_sort_index.py
+++ b/lib/extensions/lettering_set_color_sort_index.py
@@ -25,4 +25,7 @@ class LetteringSetColorSortIndex(InkstitchExtension):
if element.TAG == "path":
element.set('inkstitch:color_sort_index', self.options.color_sort_index)
elif element.TAG == "g":
- self.set_index(element.getchildren())
+ if element.get_id().startswith('command_group'):
+ element.set('inkstitch:color_sort_index', self.options.color_sort_index)
+ else:
+ self.set_index(element.getchildren())