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>
This commit is contained in:
Timo Kinnunen
2022-10-28 14:56:23 +02:00
parent f0c61364f3
commit d08f1f81a7

View File

@@ -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