From d1cb8b08bdcd4fbfef18960aa7ddee712d69d317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Thu, 4 Sep 2014 19:57:21 +0200 Subject: [PATCH] Use squareroot of the current epsilon error target for CG, since we square this value anyway. --- source/blender/blenkernel/intern/implicit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c index 6e0a9d790aa..0d4a7ec7e4a 100644 --- a/source/blender/blenkernel/intern/implicit.c +++ b/source/blender/blenkernel/intern/implicit.c @@ -839,7 +839,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);