Fix SHIFT+D shortcut for duplication not working for vanilla non-meshlike objects (eg lights)

This commit is contained in:
Gorgious56
2024-10-16 11:56:04 +02:00
parent db77d06a8a
commit 58b46da04d
+1
View File
@@ -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")
)