From 2df5b4c70ef52ba01dd5db5b6200bdfb0c72ab10 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 8 Dec 2023 12:17:34 +1100 Subject: [PATCH] Fix #4090. Bug where profile set generator didn't accommodate optional axes. --- src/blenderbim/blenderbim/bim/module/model/profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/model/profile.py b/src/blenderbim/blenderbim/bim/module/model/profile.py index 4330ef3f87..0d7621193d 100644 --- a/src/blenderbim/blenderbim/bim/module/model/profile.py +++ b/src/blenderbim/blenderbim/bim/module/model/profile.py @@ -456,7 +456,9 @@ class DumbProfileJoiner: if not extrusion: return None, None position = extrusion.Position - return (position.Axis.DirectionRatios, position.RefDirection.DirectionRatios) + if position.Axis: + return (position.Axis.DirectionRatios, position.RefDirection.DirectionRatios) + return ((0.0, 0.0, 1.0), (1.0, 0.0, 0.0)) old_body = ifcopenshell.util.representation.get_representation(element, "Model", "Body", "MODEL_VIEW") new_body = ifcopenshell.api.run(