Fix bug where non-geometric objects caused the representations UI to not display

This commit is contained in:
Dion Moult
2021-11-08 20:39:48 +11:00
parent a89a40e637
commit 246460dec4
@@ -40,6 +40,7 @@ class RepresentationsData:
def representations(cls):
results = []
element = tool.Ifc.get_entity(bpy.context.active_object)
representations = []
if element.is_a("IfcProduct") and element.Representation:
representations = element.Representation.Representations
elif element.is_a("IfcTypeProduct"):