Blender Git Commit Log

Git Commits -> Revision 90e9970

Revision 90e9970 by Campbell Barton (master)
October 30, 2010, 19:29 (GMT)
change mat4_to_eulO, mat3_to_eulO to calculate 2 rotations and return the smallest one.
mat4_to_eul & mat3_to_eul are already working this way.

Without this we get problems with constraints, eg:
rotation on the Y axis over 90d can be represented by setting the X and Z to -PI, Y would decrease to 0 (infact 180d).

Commit Details:

Full Hash: 90e9970094bc6907aec41b581e5b9144551734ae
SVN Revision: 32778
Parent Commit: 44e6026
Lines Changed: +41, -51

2 Modified Paths:

/source/blender/blenkernel/intern/constraint.c (+2, -4) (Diff)
/source/blender/blenlib/intern/math_rotation.c (+39, -47) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021