[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32374] trunk/blender/source/blender/ blenlib/intern/math_rotation.c: fix for an error in last commit with -Z tracking & curve modifier flipping
Campbell Barton
ideasman42 at gmail.com
Fri Oct 8 10:04:06 CEST 2010
Revision: 32374
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32374
Author: campbellbarton
Date: 2010-10-08 10:04:06 +0200 (Fri, 08 Oct 2010)
Log Message:
-----------
fix for an error in last commit with -Z tracking & curve modifier flipping
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/intern/math_rotation.c
Modified: trunk/blender/source/blender/blenlib/intern/math_rotation.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/math_rotation.c 2010-10-08 07:36:33 UTC (rev 32373)
+++ trunk/blender/source/blender/blenlib/intern/math_rotation.c 2010-10-08 08:04:06 UTC (rev 32374)
@@ -1539,7 +1539,7 @@
{0.70710676908493, 0.0, 0.0, 0.70710676908493}, /* pos-z90 */
{0.70710676908493, 0.0, 0.70710676908493, 0.0}, /* neg-y90 */
{0.5, -0.5, -0.5, 0.5}, /* Quaternion((1,0,0), radians(-90)) * Quaternion((0,1,0), radians(-90)) */
- {1.0, 0.0, 0.0, 0.0}}; /* no rotation */
+ {-3.0908619663705394e-08, 0.70710676908493, 0.70710676908493, 3.0908619663705394e-08}}; /* no rotation */
mul_qt_qtqt(quat, quat, quat_track[axis]);
@@ -1581,8 +1581,8 @@
break;
case 3: /* neg-x */
/* vec[0]= 0.0; */
- vec[1]= -tvec[1];
- vec[2]= -tvec[2];
+ vec[1]= tvec[2];
+ vec[2]= -tvec[1];
break;
case 4: /* neg-y */
vec[0]= -tvec[2];
More information about the Bf-blender-cvs
mailing list