From 1316e8132e58361f42cb4315c586e0e2cccfc64c Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 20 May 2022 17:29:50 +0200 Subject: prevent adding commands to empty d objects (#1658) --- lib/extensions/object_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/extensions/object_commands.py') 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) -- cgit v1.2.3