Fix bug and typo where getting shape aspects for non-geometric types (e.g. walls) would fail

This caused an error when updating a style of a material used in a wall
type
This commit is contained in:
Dion Moult
2025-02-01 15:54:57 +11:00
parent 1680c3135a
commit 1a98504328
@@ -562,8 +562,8 @@ def get_shape_aspects(element: ifcopenshell.entity_instance) -> list[ifcopenshel
# IfcTypeProduct
shape_aspects = []
for repersentation_map in element.RepresentationMaps:
shape_aspects += repersentation_map.HasShapeAspects
for representation_map in element.RepresentationMaps or []:
shape_aspects += representation_map.HasShapeAspects
return shape_aspects