From a18b00bc7e8bb9ffde15913ae1145c009a7e49de Mon Sep 17 00:00:00 2001 From: marioalexis Date: Sun, 10 Apr 2022 01:41:02 -0300 Subject: [PATCH] Draft: Fix WorkingPlane setup in automatic mode - fixes #6060 --- src/Mod/Draft/WorkingPlane.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index 2d668a204b..3627b9aad3 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -787,9 +787,9 @@ class Plane: vdir = view.getViewDirection() # The angle is between 0 and 180 degrees. angle = vdir.getAngle(self.axis) - if (angle > 0.001) and (angle < 3.14159): - # don't change the plane if it is already - # perpendicular to the current view + # don't change the plane if the axis is already + # antiparallel to the current view + if abs(math.pi - angle) > Part.Precision.angular(): self.alignToPointAndAxis(Vector(0, 0, 0), vdir.negative(), 0, upvec) except Exception: