From 13c7b0ef173912f58acb1110e277603e4593f838 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Mon, 23 Jan 2017 01:18:19 +0100 Subject: [PATCH] Convert output of llAxes2Rot to F32. --- lslopt/lslbasefuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index 004c5ba..85a0ffa 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -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.