Minor fix to shape aspects because not everything has a mesh (e.g. text annotations)

This commit is contained in:
Dion Moult
2024-03-03 23:09:40 +11:00
parent 6f0dd25517
commit a7e0cb0bc3
@@ -96,6 +96,8 @@ class RepresentationsData:
@classmethod
def shape_aspects(cls):
obj = bpy.context.active_object
if not obj.data:
return []
element = tool.Ifc.get_entity(obj)
active_representation_id = obj.data.BIMMeshProperties.ifc_definition_id
base_representation = tool.Ifc.get().by_id(active_representation_id)