From 58b46da04d2c54bcf10857768c1aed405ac7a18d Mon Sep 17 00:00:00 2001 From: Gorgious56 Date: Wed, 16 Oct 2024 11:56:04 +0200 Subject: [PATCH] Fix SHIFT+D shortcut for duplication not working for vanilla non-meshlike objects (eg lights) --- src/bonsai/bonsai/tool/geometry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bonsai/bonsai/tool/geometry.py b/src/bonsai/bonsai/tool/geometry.py index 21e999c52e..f5666a0a12 100644 --- a/src/bonsai/bonsai/tool/geometry.py +++ b/src/bonsai/bonsai/tool/geometry.py @@ -887,6 +887,7 @@ class Geometry(bonsai.core.tool.Geometry): def is_representation_item(cls, obj: bpy.types.Object) -> bool: return ( obj.data + and hasattr(obj.data, "BIMMeshProperties") and (ifc_id := obj.data.BIMMeshProperties.ifc_definition_id) and tool.Ifc.get().by_id(ifc_id).is_a("IfcRepresentationItem") )