summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-05-20 17:29:50 +0200
committerGitHub <noreply@github.com>2022-05-20 17:29:50 +0200
commit1316e8132e58361f42cb4315c586e0e2cccfc64c (patch)
treeaf7dedf03e0700fedd24fb73b2137de332688ba2 /lib/extensions
parentdec43b9c5f19b084e32b66c367480a43b1f5fc9d (diff)
prevent adding commands to empty d objects (#1658)
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/object_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/object_commands.py b/lib/extensions/object_commands.py
index a3ad6128..42fd85dc 100644
--- a/lib/extensions/object_commands.py
+++ b/lib/extensions/object_commands.py
@@ -34,6 +34,6 @@ class ObjectCommands(CommandsExtension):
seen_nodes = set()
for element in self.elements:
- if element.node not in seen_nodes:
+ if element.node not in seen_nodes and element.shape():
add_commands(element, commands)
seen_nodes.add(element.node)