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-23 21:29:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-23 22:03:48 +0300
commit3a98426ed6d37a204b1d55834e0590dcb7990b47 (patch)
tree1ee8808026f43dc405c28e957d0fbd503f3796a4 /source/blender/blenlib/intern/math_rotation.c
parentba1df8265d7d4105c5ecadaecb8ca28fffb34242 (diff)
Cleanup: remove redundant math calls
Diffstat (limited to 'source/blender/blenlib/intern/math_rotation.c')
-rw-r--r--source/blender/blenlib/intern/math_rotation.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c
index 0ef3f046202..88c577f3517 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -1149,10 +1149,8 @@ void eul_to_mat4(float mat[4][4], const float eul[3])
/* XYZ order */
static void mat3_to_eul2(float tmat[3][3], float eul1[3], float eul2[3])
{
- float cy, quat[4], mat[3][3];
+ float cy, mat[3][3];
- mat3_to_quat(quat, tmat);
- quat_to_mat3(mat, quat);
normalize_m3_m3(mat, tmat);
cy = hypotf(mat[0][0], mat[0][1]);
@@ -1494,7 +1492,6 @@ void eulO_to_mat4(float M[4][4], const float e[3], const short order)
float m[3][3];
/* for now, we'll just do this the slow way (i.e. copying matrices) */
- normalize_m3(m);
eulO_to_mat3(m, e, order);
copy_m4_m3(M, m);
}