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-22 17:59:01 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-05-22 17:59:01 +0300
commitbd027416c4ccfa8aee2054381de0b3fbff116b27 (patch)
treee674268235057f7c9e358e16550758506b87976e /source/blender/blenkernel
parent7b66e7bdd1b45b106557b880e29748bf3fa9fb05 (diff)
Fix for incorrect cutoff points with the haircut cache modifier.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/cache_library.c8
-rw-r--r--source/blender/blenkernel/intern/strands.c4
2 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/cache_library.c b/source/blender/blenkernel/intern/cache_library.c
index 4009a480dc1..411ed78dafa 100644
--- a/source/blender/blenkernel/intern/cache_library.c
+++ b/source/blender/blenkernel/intern/cache_library.c
@@ -1849,13 +1849,7 @@ static bool haircut_find_segment_cut(HaircutCacheModifier *hmd, HaircutCacheData
if ((hmd->cut_mode & eHaircutCacheModifier_CutMode_Enter && is_entering) ||
(hmd->cut_mode & eHaircutCacheModifier_CutMode_Exit && !is_entering))
{
-
- /* convert back to world space */
- mul_m4_v3(inst->mat, hit.co);
- mul_mat3_m4_v3(inst->mat, hit.no);
-
- if (r_lambda) *r_lambda = len_v3v3(hit.co, v1) / length;
-
+ if (r_lambda) *r_lambda = len_v3v3(hit.co, start) / length;
return true;
}
diff --git a/source/blender/blenkernel/intern/strands.c b/source/blender/blenkernel/intern/strands.c
index bcb12d63c58..40e31c5a867 100644
--- a/source/blender/blenkernel/intern/strands.c
+++ b/source/blender/blenkernel/intern/strands.c
@@ -396,9 +396,9 @@ void BKE_strands_children_deform(StrandsChildren *strands, Strands *parents, boo
mul_m4_v3(it_strand.curve->root_matrix, it_vert.vertex->co);
}
- strands_children_apply_cutoff(&it_strand);
-
strands_children_strand_deform_intern(&it_strand, parents, vertstart, use_motion, NULL);
+
+ strands_children_apply_cutoff(&it_strand);
}
if (vertstart)