From aebc319cedb0489560979fb6efb164fd432573df Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 3 Oct 2020 13:56:23 -0500 Subject: [PATCH] Path: Fix rotational error for certain situations Error discovered during recent troubleshooting of Pocket_Shape with rotation. Initial application of new operation yields path, but subsequent changes and applications failed due to `if ...` statement removed here for the fix. --- src/Mod/Path/PathScripts/PathProfile.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathProfile.py b/src/Mod/Path/PathScripts/PathProfile.py index da76f71dda..02e10b3fc2 100644 --- a/src/Mod/Path/PathScripts/PathProfile.py +++ b/src/Mod/Path/PathScripts/PathProfile.py @@ -570,9 +570,13 @@ class ObjectProfile(PathAreaOp.ObjectOp): angle -= 180.0 if rtn is True: - PathLog.debug(translate("Path", "Face appears misaligned after initial rotation.")) - if obj.InverseAngle is False: - if obj.AttemptInverseAngle is True: + PathLog.debug(translate("Path", "Face appears misaligned after initial rotation.")) + if obj.AttemptInverseAngle is True: + PathLog.debug(translate("Path", "Applying inverse angle automatically.")) + (clnBase, clnStock, angle) = self.applyInverseAngle(obj, clnBase, clnStock, axis, angle) + else: + if obj.InverseAngle: + PathLog.debug(translate("Path", "Applying inverse angle manually.")) (clnBase, clnStock, angle) = self.applyInverseAngle(obj, clnBase, clnStock, axis, angle) else: msg = translate("Path", "Consider toggling the 'InverseAngle' property and recomputing.")