summaryrefslogtreecommitdiff
path: root/lib/elements/utils.py
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2021-06-27 22:29:57 +0200
committerKaalleen <reni@allenka.de>2021-06-27 22:29:57 +0200
commitc602c4c517cab40dfc2dc7dbc5c29c037cccafae (patch)
tree86a45909c36e307e13a0b9e009d7d2d6414b11a0 /lib/elements/utils.py
parentd6df8084f4a0fe8c8e174ea230d158512bd8f094 (diff)
group patterns
Diffstat (limited to 'lib/elements/utils.py')
-rw-r--r--lib/elements/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/elements/utils.py b/lib/elements/utils.py
index 03ea48d4..cbac3d40 100644
--- a/lib/elements/utils.py
+++ b/lib/elements/utils.py
@@ -17,6 +17,7 @@ from .polyline import Polyline
from .satin_column import SatinColumn
from .stroke import Stroke
from .text import TextObject
+from ..commands import group_commands
def node_to_elements(node): # noqa: C901
@@ -29,7 +30,8 @@ def node_to_elements(node): # noqa: C901
elif node.tag == SVG_PATH_TAG and not node.get('d', ''):
return [EmptyDObject(node)]
- elif node.get(INKSTITCH_ATTRIBS['pattern']):
+ # TODO: exclude fills
+ elif group_commands(node, 'pattern_group') and not node.get(INKSTITCH_ATTRIBS['satin_column']):
return [PatternObject(node)]
elif node.tag in EMBROIDERABLE_TAGS: