From 21a52613451ce7becbf2a50a7ec3a4bb28d510b7 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 29 Apr 2025 10:23:23 +0200 Subject: [PATCH] BIM: Fix Python syntax error Due to the use of an incorrect exponentiation operator the following exception was triggered when changing attributes of a wave profile: TypeError: Unsupported operand type(s) for ^: 'float' and 'float' fixes #21048 --- src/Mod/BIM/ArchPanel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/ArchPanel.py b/src/Mod/BIM/ArchPanel.py index 6c141973af..c6d47e80a8 100644 --- a/src/Mod/BIM/ArchPanel.py +++ b/src/Mod/BIM/ArchPanel.py @@ -312,7 +312,7 @@ class _Panel(ArchComponent.Component): downsegment = Part.Wire([e3,e4]) else: r = e2.Curve.Radius+obj.Thickness.Value - z = math.sqrt(r^2 - obj.WaveLength.Value^2) + z = math.sqrt(r**2 - obj.WaveLength.Value**2) p6 = e2.Curve.Center.add(Vector(-obj.WaveLength,0,-z)) p7 = e2.Curve.Center.add(Vector(0,0,-r)) p8 = e2.Curve.Center.add(Vector(obj.WaveLength,0,-z))