mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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:
|
def is_representation_item(cls, obj: bpy.types.Object) -> bool:
|
||||||
return (
|
return (
|
||||||
obj.data
|
obj.data
|
||||||
|
and hasattr(obj.data, "BIMMeshProperties")
|
||||||
and (ifc_id := obj.data.BIMMeshProperties.ifc_definition_id)
|
and (ifc_id := obj.data.BIMMeshProperties.ifc_definition_id)
|
||||||
and tool.Ifc.get().by_id(ifc_id).is_a("IfcRepresentationItem")
|
and tool.Ifc.get().by_id(ifc_id).is_a("IfcRepresentationItem")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user