summaryrefslogtreecommitdiff
path: root/lib/elements/utils.py
diff options
context:
space:
mode:
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: