mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Fix bug where non-geometric objects caused the representations UI to not display
This commit is contained in:
@@ -40,6 +40,7 @@ class RepresentationsData:
|
|||||||
def representations(cls):
|
def representations(cls):
|
||||||
results = []
|
results = []
|
||||||
element = tool.Ifc.get_entity(bpy.context.active_object)
|
element = tool.Ifc.get_entity(bpy.context.active_object)
|
||||||
|
representations = []
|
||||||
if element.is_a("IfcProduct") and element.Representation:
|
if element.is_a("IfcProduct") and element.Representation:
|
||||||
representations = element.Representation.Representations
|
representations = element.Representation.Representations
|
||||||
elif element.is_a("IfcTypeProduct"):
|
elif element.is_a("IfcTypeProduct"):
|
||||||
|
|||||||
Reference in New Issue
Block a user