From 1f83b4f7a0648fda4d2e475c5bb37d863fbfc8aa Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 11 Feb 2025 18:54:45 +1100 Subject: [PATCH] Fix bug where non-columns would still behave like columns if they were profiled which is unintuitive On second thoughts only columns should go up, everything else should go wherever you click to. Not really a bug, just an unexpected default. --- src/bonsai/bonsai/bim/module/model/profile.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/model/profile.py b/src/bonsai/bonsai/bim/module/model/profile.py index 122208456a..bbc2671314 100644 --- a/src/bonsai/bonsai/bim/module/model/profile.py +++ b/src/bonsai/bonsai/bim/module/model/profile.py @@ -105,9 +105,7 @@ class DumbProfileGenerator: obj = bpy.data.objects.new(tool.Model.generate_occurrence_name(self.relating_type, ifc_class), mesh) matrix_world = Matrix() - if self.relating_type.is_a() in ["IfcBeamType", "IfcCoveringType", "IfcMemberType"] or self.relating_type.is_a( - "IfcFlowSegmentType" - ): + if not self.relating_type.is_a("IfcColumnType"): matrix_world = Matrix.Rotation(pi / 2, 4, "Z") @ Matrix.Rotation(pi / 2, 4, "X") @ matrix_world matrix_world = Matrix.Rotation(self.rotation, 4, "Z") @ matrix_world @@ -1133,8 +1131,6 @@ class DrawPolylineProfile(bpy.types.Operator, PolylineOperator): return {"FINISHED"} model_props = tool.Model.get_model_props() - direction_sense = model_props.direction_sense - offset = model_props.offset profiles, is_polyline_closed = DumbProfileGenerator(self.relating_type).generate("POLYLINE") if profiles: