Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2012-05-06 19:40:49 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-05-06 19:40:49 +0400
commita058ac9c50fefe9d8ee0519a694d2ca371f358bd (patch)
treecc1a8e2b5dd4eb331136f5bc2244eb235b146323 /source/blender/blenkernel
parent4f1cdb3e42c5a1103dde3794a87d7e4765702c72 (diff)
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... :(
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/armature.c6
1 files changed, 5 insertions, 1 deletions
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);