mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix SHIFT+D shortcut for duplication not working for vanilla non-meshlike objects (eg lights)
This commit is contained in:
@@ -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")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user