QuatOne was so wrong is would make Hamilton cry.
authorMartin Poirier <theeth@yahoo.com>
Mon, 17 Nov 2008 22:13:45 +0000 (22:13 +0000)
committerMartin Poirier <theeth@yahoo.com>
Mon, 17 Nov 2008 22:13:45 +0000 (22:13 +0000)
Thankfully, very little code used it, the only exception being the retarget code in etch-a-ton.

source/blender/blenlib/intern/arithb.c

index 149d3cf1f8f5bc65413d18a6346fae0a008657c0..e606092f72d58300607216785f0ea821420d36df 100644 (file)
@@ -1351,8 +1351,8 @@ void Mat4ToQuat( float m[][4], float *q)
 
 void QuatOne(float *q)
 {
-       q[0]= q[2]= q[3]= 0.0;
-       q[1]= 1.0;
+       q[0]= 1.0;
+       q[1]= q[2]= q[3]= 0.0;
 }
 
 void NormalQuat(float *q)