[Bf-blender-cvs] [c4e00b1] hair_immediate_fixes: Use squareroot of the current epsilon error target for CG, since we square this value anyway.

Lukas Tönne noreply at git.blender.org
Fri Sep 5 12:50:43 CEST 2014


Commit: c4e00b15c7ddf31fcee649578bc6331356b81e07
Author: Lukas Tönne
Date:   Thu Sep 4 19:57:21 2014 +0200
Branches: hair_immediate_fixes
https://developer.blender.org/rBc4e00b15c7ddf31fcee649578bc6331356b81e07

Use squareroot of the current epsilon error target for CG, since we
square this value anyway.

===================================================================

M	source/blender/blenkernel/intern/implicit.c

===================================================================

diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c
index 356c887..6a27493 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -998,7 +998,7 @@ static int cg_filtered(lfVector *ldV, fmatrix3x3 *lA, lfVector *lB, lfVector *z,
 {
 	// Solves for unknown X in equation AX=B
 	unsigned int conjgrad_loopcount=0, conjgrad_looplimit=100;
-	float conjgrad_epsilon=0.0001f /* , conjgrad_lasterror=0 */ /* UNUSED */;
+	float conjgrad_epsilon=0.01f;
 	
 	unsigned int numverts = lA[0].vcount;
 	lfVector *fB = create_lfvector(numverts);




More information about the Bf-blender-cvs mailing list