diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-08 03:14:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-08 03:14:49 +0300 |
commit | 7a3ea87bbff7a250e035d35c59f3784eec51bc47 (patch) | |
tree | df9e990591e4126dd662af596e2c268488a0a2e9 /source/blender/blenlib/intern/math_rotation.c | |
parent | 6035cf05bf1c794c35e89fbf467cfc35901d81e3 (diff) |
Cleanup: use normalize_v#_length
Diffstat (limited to 'source/blender/blenlib/intern/math_rotation.c')
-rw-r--r-- | source/blender/blenlib/intern/math_rotation.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c index d962e4f0fa7..b285a74b8ac 100644 --- a/source/blender/blenlib/intern/math_rotation.c +++ b/source/blender/blenlib/intern/math_rotation.c @@ -200,8 +200,7 @@ void mul_fac_qt_fl(float q[4], const float fac) const float co = cosf(angle); const float si = sinf(angle); q[0] = co; - normalize_v3(q + 1); - mul_v3_fl(q + 1, si); + normalize_v3_length(q + 1, si); } /* skip error check, currently only needed by mat3_to_quat_is_ok */ |