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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user