summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-01-09 17:07:00 +0100
committerGitHub <noreply@github.com>2025-01-09 17:07:00 +0100
commitfd0550edbcfa65b8381cbc2283a344fcc30a0da9 (patch)
treef12a96295d1d2dd7da4eb063f70bda48fe3daa9c /lib
parentf0d0f559b64c7f6635455ad72121d8a8b16b7f8b (diff)
exclude invisible from node_to_elements directly (#3424)
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/elements/utils.py b/lib/elements/utils.py
index 79d5ac93..09d24935 100644
--- a/lib/elements/utils.py
+++ b/lib/elements/utils.py
@@ -24,6 +24,8 @@ from .text import TextObject
def node_to_elements(node, clone_to_element=False) -> List[EmbroideryElement]: # noqa: C901
+ if node.style('display') == 'none':
+ return []
if is_clone(node) and not clone_to_element:
# clone_to_element: get an actual embroiderable element once a clone has been defined as a clone
return [Clone(node)]