diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-10 12:19:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-10 12:19:45 +0400 |
commit | 414b9865e46b0e8041dd8a6e03479479fc7dc73c (patch) | |
tree | 7981cae06ac5e028850558e02ac99a75573d83d9 /source/blender | |
parent | b465039ee725ae9c1f656a4b3b8c1d00aa7e0281 (diff) |
zero rotation values for quat_apply_track() which were in fact just float in precision.
also minor code cleanup - tabs -> spaces in scons file.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/intern/math_rotation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c index 69f837c7652..1698733dda7 100644 --- a/source/blender/blenlib/intern/math_rotation.c +++ b/source/blender/blenlib/intern/math_rotation.c @@ -1665,7 +1665,7 @@ void quat_apply_track(float quat[4], short axis, short upflag) {M_SQRT1_2, 0.0, 0.0, M_SQRT1_2}, /* pos-z90 */ {M_SQRT1_2, 0.0, M_SQRT1_2, 0.0}, /* neg-y90 */ {0.5, -0.5, -0.5, 0.5}, /* Quaternion((1,0,0), radians(-90)) * Quaternion((0,1,0), radians(-90)) */ - {-3.0908619663705394e-08, M_SQRT1_2, M_SQRT1_2, 3.0908619663705394e-08} /* no rotation */ + {0.0, M_SQRT1_2, M_SQRT1_2, 0.0} /* no rotation */ }; assert(axis >= 0 && axis <= 5); |