Merge pull request #3551 from WandererFan/PAAngle

[Draft]Path Array tangent rotation direction
This commit is contained in:
WandererFan
2020-06-03 07:14:11 -04:00
committed by GitHub

View File

@@ -148,7 +148,7 @@ class PathArray(DraftLink):
baseRotation = basePlacement.Rotation
stdX = App.Vector(1.0, 0.0, 0.0) #default TangentVector
if (not DraftVecUtils.equals(stdX, obj.TangentVector)):
preRotation = App.Rotation(stdX, obj.TangentVector) #make rotation from X to TangentVector
preRotation = App.Rotation(obj.TangentVector, stdX) #make rotation from TangentVector to X
netRotation = baseRotation.multiply(preRotation)
else:
netRotation = baseRotation