bugfix [#23954] Bone roll keeps changing when switching between EDIT <-> OBJECT mode
authorCampbell Barton <ideasman42@gmail.com>
Thu, 23 Sep 2010 01:48:31 +0000 (01:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 23 Sep 2010 01:48:31 +0000 (01:48 +0000)
use lower epsilon value.

source/blender/blenkernel/intern/armature.c

index 41821f3..bfd12f7 100644 (file)
@@ -1289,7 +1289,9 @@ void vec_roll_to_mat3(float *vec, float roll, float mat[][3])
        /*      Find Axis & Amount for bone matrix*/
        cross_v3_v3v3(axis,target,nor);
 
-       if (dot_v3v3(axis,axis) > 0.0000000000001) {
+       /* was 0.0000000000001, caused bug [#23954], larger values give unstable
+        * when toggling editmode */
+       if (dot_v3v3(axis,axis) > 0.00001) {
                /* if nor is *not* a multiple of target ... */
                normalize_v3(axis);