From a058ac9c50fefe9d8ee0519a694d2ca371f358bd Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 6 May 2012 15:40:49 +0000 Subject: Fix for [#31333] 2.63 Bone copy rotation becomes mad after entering/leaving armature edit mode There is no real good solution to this problem, hopefully this threshold value will be a good compromize this time... :( --- source/blender/blenkernel/intern/armature.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 59ac1604e29..58264fb4175 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -1463,8 +1463,12 @@ void vec_roll_to_mat3(const float vec[3], const float roll, float mat[][3]) * * was 0.000001, causes bug [#30438] (which is same as [#27675, imho). * Reseting it to org value seems to cause no more [#23954]... + * + * was 0.0000000000001, caused bug [#], smaller values give unstable + * roll when toggling editmode again... + * No good value here, trying 0.000000001 as best compromize. :/ */ - if (dot_v3v3(axis, axis) > 1.0e-13f) { + if (dot_v3v3(axis, axis) > 1.0e-9f) { /* if nor is *not* a multiple of target ... */ normalize_v3(axis); -- cgit v1.2.3