mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
Minor fix to shape aspects because not everything has a mesh (e.g. text annotations)
This commit is contained in:
@@ -96,6 +96,8 @@ class RepresentationsData:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def shape_aspects(cls):
|
def shape_aspects(cls):
|
||||||
obj = bpy.context.active_object
|
obj = bpy.context.active_object
|
||||||
|
if not obj.data:
|
||||||
|
return []
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
active_representation_id = obj.data.BIMMeshProperties.ifc_definition_id
|
active_representation_id = obj.data.BIMMeshProperties.ifc_definition_id
|
||||||
base_representation = tool.Ifc.get().by_id(active_representation_id)
|
base_representation = tool.Ifc.get().by_id(active_representation_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user