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>2015-05-27 17:46:23 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-05-27 17:46:23 +0300
commit9c87f0f2c85598e2831550df4ed05c23d82f4f19 (patch)
treea5d31e741a410abbe7a7510f6bb8842965f40217 /source/blender/blenkernel/intern
parentb98c3efaa48d4c507faa3d87aa6f81eb92d3e39a (diff)
Fix for the hair strands cutting modifier for caches.
The cutoff value was off by 1.0, due to an invalid increment for the first vertex.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/cache_library.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/cache_library.c b/source/blender/blenkernel/intern/cache_library.c
index 46cc2aa40d9..2fe0e8f96fd 100644
--- a/source/blender/blenkernel/intern/cache_library.c
+++ b/source/blender/blenkernel/intern/cache_library.c
@@ -1864,12 +1864,14 @@ static bool haircut_find_first_strand_cut(HaircutCacheModifier *hmd, HaircutCach
}
if (found_cut) {
- if (r_cutoff) *r_cutoff = cutoff + lambda_min;
+ cutoff += lambda_min;
+ if (r_cutoff) *r_cutoff = cutoff;
return true;
}
+ else
+ cutoff += 1.0f;
}
- cutoff += 1.0f;
vprev = it_vert.index;
}