[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60707] trunk/blender/source/blender/ blenlib/intern/math_rotation.c: Further tweak for dual quaternion armature deform problem, tweak the epsilon

Brecht Van Lommel brechtvanlommel at pandora.be
Sat Oct 12 14:54:09 CEST 2013


Revision: 60707
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60707
Author:   blendix
Date:     2013-10-12 12:54:09 +0000 (Sat, 12 Oct 2013)
Log Message:
-----------
Further tweak for dual quaternion armature deform problem, tweak the epsilon
value to solve some more cases.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/math_rotation.c

Modified: trunk/blender/source/blender/blenlib/intern/math_rotation.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/math_rotation.c	2013-10-12 12:40:00 UTC (rev 60706)
+++ trunk/blender/source/blender/blenlib/intern/math_rotation.c	2013-10-12 12:54:09 UTC (rev 60707)
@@ -286,7 +286,7 @@
 
 	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);




More information about the Bf-blender-cvs mailing list