Fix #2681. Fix 90 degree rotation on walls.

This commit is contained in:
Dion Moult
2023-01-09 21:55:22 +11:00
parent b699f55d9c
commit f848340124
@@ -418,6 +418,8 @@ class DumbProfileJoiner:
self.body = copy.deepcopy(body)
material = ifcopenshell.util.element.get_material(element, should_skip_usage=False)
usage = None
if not material or not material.is_a("IfcMaterialProfileSet"):
return
if material.is_a("IfcMaterialProfileSetUsage"):
usage = material
material = material.ForProfileSet