Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-10-24 09:48:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-24 09:50:20 +0300
commitc5945ebb2cbb0b87d5d9814c44820716b334f870 (patch)
treef171fba653b154849fca6c0c645548dbc00b90c6 /source/blender/python/mathutils
parent25c00ae4609cbd39c47d1d5f91a2e7494df7d64c (diff)
Cleanup: use quat to eul w/ mathutils API
Diffstat (limited to 'source/blender/python/mathutils')
-rw-r--r--source/blender/python/mathutils/mathutils_Quaternion.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/python/mathutils/mathutils_Quaternion.c b/source/blender/python/mathutils/mathutils_Quaternion.c
index 898a002cf09..ea5732966b2 100644
--- a/source/blender/python/mathutils/mathutils_Quaternion.c
+++ b/source/blender/python/mathutils/mathutils_Quaternion.c
@@ -108,15 +108,11 @@ static PyObject *Quaternion_to_euler(QuaternionObject *self, PyObject *args)
normalize_qt_qt(tquat, self->quat);
if (eul_compat) {
- float mat[3][3];
-
if (BaseMath_ReadCallback(eul_compat) == -1)
return NULL;
- quat_to_mat3(mat, tquat);
-
- if (order == EULER_ORDER_XYZ) mat3_normalized_to_compatible_eul(eul, eul_compat->eul, mat);
- else mat3_normalized_to_compatible_eulO(eul, eul_compat->eul, order, mat);
+ if (order == EULER_ORDER_XYZ) quat_to_compatible_eul(eul, eul_compat->eul, tquat);
+ else quat_to_compatible_eulO(eul, eul_compat->eul, order, tquat);
}
else {
if (order == EULER_ORDER_XYZ) quat_to_eul(eul, tquat);