mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix llRot2Axis to negate the axis when s is negative.
This commit is contained in:
parent
144fa5b00e
commit
661853be53
1 changed files with 2 additions and 0 deletions
|
@ -1404,6 +1404,8 @@ def llRot2Angle(r):
|
|||
def llRot2Axis(r):
|
||||
assert isrotation(r)
|
||||
r = q2f(r)
|
||||
if r[3] < 0:
|
||||
return llVecNorm(Vector((-r[0], -r[1], -r[2])))
|
||||
return llVecNorm(Vector((r[0], r[1], r[2])))
|
||||
|
||||
def llRot2Euler(r):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue