diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-20 12:47:01 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-20 12:47:01 +0300 |
commit | 87e37224c74a4336278e27b0de9e2223701439ae (patch) | |
tree | 2fae0e431cea442008b77ec0eba688940ca430e5 /source/blender/blenkernel/intern/particle_child.c | |
parent | 529cc364f4a6e02d149da89c934c486051801e1a (diff) |
Fix T54069: Vertex groups for hair length is wrong in some cases
This is a regression in rB4f1c0a1 which only allowed cutting haior at the
second segment only, while there is nothing wrong with cutting hair at the
first segmewnt.
Diffstat (limited to 'source/blender/blenkernel/intern/particle_child.c')
-rw-r--r-- | source/blender/blenkernel/intern/particle_child.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_child.c b/source/blender/blenkernel/intern/particle_child.c index fae304d6580..c921e1ea107 100644 --- a/source/blender/blenkernel/intern/particle_child.c +++ b/source/blender/blenkernel/intern/particle_child.c @@ -394,7 +394,7 @@ void psys_apply_child_modifiers(ParticleThreadContext *ctx, struct ListBase *mod get_strand_normal(ma, ornor, cur_length, (key-1)->vel); } - if (use_length_check && k > 1) { + if (use_length_check && k > 0) { float dvec[3]; /* check if path needs to be cut before actual end of data points */ if (!check_path_length(k, keys, key, max_length, step_length, &cur_length, dvec)) { |