Revision: 49217
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49217
Author: campbellbarton
Date: 2012-07-25 16:46:46 +0000 (Wed, 25 Jul 2012)
Log Message:
-----------
don't pass the same value to axis_angle_to_quat() for axis & quat.
-/-This line, and those below, will be ignored--
M mathutils_Quaternion.c
Modified Paths:
--------------
trunk/blender/source/blender/python/mathutils/mathutils_Quaternion.c
Modified: trunk/blender/source/blender/python/mathutils/mathutils_Quaternion.c
===================================================================
--- trunk/blender/source/blender/python/mathutils/mathutils_Quaternion.c
2012-07-25 16:44:43 UTC (rev 49216)
+++ trunk/blender/source/blender/python/mathutils/mathutils_Quaternion.c
2012-07-25 16:46:46 UTC (rev 49217)
@@ -1085,12 +1085,15 @@
return NULL;
break;
case 2:
- if (mathutils_array_parse(quat, 3, 3, seq,
"mathutils.Quaternion()") == -1)
+ {
+ float axis[3];
+ if (mathutils_array_parse(axis, 3, 3, seq,
"mathutils.Quaternion()") == -1)
return NULL;
angle = angle_wrap_rad(angle); /* clamp because of
precision issues */
- axis_angle_to_quat(quat, quat, angle);
+ axis_angle_to_quat(quat, axis, angle);
break;
/* PyArg_ParseTuple assures no more then 2 */
+ }
}
return Quaternion_CreatePyObject(quat, Py_NEW, type);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs