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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-10-12 16:54:09 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-10-12 16:54:09 +0400
commit6d9ccbc28dbca2a964b0e844d1a4da3212c2f7ae (patch)
tree0d46faf2d9e23f9dd4bcae0b5ad0adf9509a085c /source/blender/blenlib
parent11f0e35236b9acf972826d65c9569c754920e0c3 (diff)
Further tweak for dual quaternion armature deform problem, tweak the epsilon
value to solve some more cases.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/math_rotation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c
index a056f014b1c..2eebe10dd58 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -286,7 +286,7 @@ void mat3_to_quat(float q[4], float wmat[3][3])
tr = 0.25 * (double)(1.0f + mat[0][0] + mat[1][1] + mat[2][2]);
- if (tr > (double)1e-6f) {
+ if (tr > (double)1e-4f) {
s = sqrt(tr);
q[0] = (float)s;
s = 1.0 / (4.0 * s);