Fix llRot2Axis to negate the axis when s is negative.

This commit is contained in:
Sei Lisa 2016-01-22 20:54:43 +01:00
parent 144fa5b00e
commit 661853be53

View file

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