Fix for "[#25700] 2.56: Rotation Mode: Quaternion shows wrong orientation of the...
authorKonrad Kleine <konrad.wilhelm.kleine@gmail.com>
Tue, 18 Jan 2011 15:02:58 +0000 (15:02 +0000)
committerKonrad Kleine <konrad.wilhelm.kleine@gmail.com>
Tue, 18 Jan 2011 15:02:58 +0000 (15:02 +0000)
There was a small typing error that made object and armatures rotate twice the magnitude when in quaternion rotation mode.

source/blender/blenkernel/intern/object.c

index 0ac98256b07e2d4be24fe1ab978f04a82cfe1f12..43a13b2773663f029774cb23ddbd4d21d71f0e86 100644 (file)
@@ -1674,7 +1674,7 @@ void object_rot_to_mat3(Object *ob, float mat[][3])
                normalize_qt_qt(tquat, ob->quat);
                quat_to_mat3(rmat, tquat);
 
-               normalize_qt_qt(tquat, ob->quat);
+               normalize_qt_qt(tquat, ob->dquat);
                quat_to_mat3(dmat, tquat);
        }