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:
authorLukas Tönne <lukas.toenne@gmail.com>2014-09-04 21:57:21 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:29:57 +0300
commitd1cb8b08bdcd4fbfef18960aa7ddee712d69d317 (patch)
tree3ca28fea44774728922dd92935a835d8def7cc85 /source/blender/blenkernel/intern/implicit.c
parent8ec4c31d9c454831d14b1be410fa765df4d96ca4 (diff)
Use squareroot of the current epsilon error target for CG, since we
square this value anyway.
Diffstat (limited to 'source/blender/blenkernel/intern/implicit.c')
-rw-r--r--source/blender/blenkernel/intern/implicit.c2
1 files changed, 1 insertions, 1 deletions
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);