mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user