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:
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);