Convert output of llAxes2Rot to F32.

This commit is contained in:
Sei Lisa 2017-01-23 01:18:19 +01:00
parent dd1b7ed594
commit 13c7b0ef17

View file

@ -871,7 +871,7 @@ def llAxes2Rot(fwd, left, up):
s = 0.5/r
# For the case of ix+jy+kz > 0, it can return an unnormalized quaternion
return Quaternion((s*(left[2]-up[1]), s*(up[0]-fwd[2]), s*(fwd[1]-left[0]), r*0.5))
return Quaternion(F32((s*(left[2]-up[1]), s*(up[0]-fwd[2]), s*(fwd[1]-left[0]), r*0.5)))
# Find a positive combo. LSL normalizes the result in these cases only, so we do the same.