From e5c95b33f51839205133e23804505f513c9e6356 Mon Sep 17 00:00:00 2001 From: Timo Kinnunen Date: Fri, 28 Oct 2022 14:56:23 +0200 Subject: [PATCH] Draft: make tangent vector affect ExtraTranslation Changes as per discussion in the PR to fix issue #7506 with @Roy-043. Co-Authored-By: Roy-043 <70520633+Roy-043@users.noreply.github.com> --- src/Mod/Draft/draftobjects/patharray.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/draftobjects/patharray.py b/src/Mod/Draft/draftobjects/patharray.py index 85b92ebfd6..19c9a33f7c 100644 --- a/src/Mod/Draft/draftobjects/patharray.py +++ b/src/Mod/Draft/draftobjects/patharray.py @@ -488,7 +488,7 @@ def calculate_placement(globalRotation, # Default Placement: placement = App.Placement() placement.Rotation = globalRotation - placement.Base = RefPt + xlate + placement.Base = RefPt + placement.Rotation.multVec(xlate) if not align: return placement @@ -549,9 +549,8 @@ def calculate_placement(globalRotation, _msg(translate("draft", "AlignMode {} is not implemented").format(mode)) return placement - newGRot = newRot.multiply(globalRotation) - placement.Rotation = newGRot - placement.Base = RefPt + newRot.multVec(xlate) + placement.Rotation = newRot.multiply(globalRotation) + placement.Base = RefPt + placement.Rotation.multVec(xlate) return placement