summaryrefslogtreecommitdiff
path: root/lib/extensions/tartan.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/tartan.py')
-rw-r--r--lib/extensions/tartan.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/extensions/tartan.py b/lib/extensions/tartan.py
index 7f8c582a..8c3c8c5f 100644
--- a/lib/extensions/tartan.py
+++ b/lib/extensions/tartan.py
@@ -32,8 +32,15 @@ class Tartan(InkstitchExtension):
def _get_elements(self):
for node in self.svg.selection:
+ self.get_selection(node)
+
+ def get_selection(self, node):
+ if node.TAG == 'g' and not node.get_id().startswith('inkstitch-tartan'):
+ for child_node in node.iterchildren():
+ self.get_selection(child_node)
+ else:
node = self.get_outline(node)
- if node.style('fill'):
+ if node.tag in EMBROIDERABLE_TAGS and node.style('fill'):
self.elements.add(node)
def get_outline(self, node):