Blender Git Commit Log

Git Commits -> Revision ca3d405

Revision ca3d405 by Campbell Barton (master)
January 11, 2011, 09:41 (GMT)
py/mathutils fix for eternal loop with Matrix.Rotation().
rotation range clamping used a while loop which would run forever when the value was so big subtracting a full revolution didnt change the value.

Solve by using fmod() and double precision angle.

Commit Details:

Full Hash: ca3d4052de2b26d4f3f15c4786794e619ffeef26
SVN Revision: 34252
Parent Commit: 5bcee8c
Lines Changed: +14, -14

2 Modified Paths:

/source/blender/python/generic/mathutils_Matrix.c (+5, -7) (Diff)
/source/blender/python/generic/mathutils_quat.c (+9, -7) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021