mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +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
|
# IfcTypeProduct
|
||||||
shape_aspects = []
|
shape_aspects = []
|
||||||
for repersentation_map in element.RepresentationMaps:
|
for representation_map in element.RepresentationMaps or []:
|
||||||
shape_aspects += repersentation_map.HasShapeAspects
|
shape_aspects += representation_map.HasShapeAspects
|
||||||
return shape_aspects
|
return shape_aspects
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user