[Bf-blender-cvs] [87e37224c74] master: Fix T54069: Vertex groups for hair length is wrong in some cases

Sergey Sharybin noreply at git.blender.org
Tue Feb 20 10:50:08 CET 2018


Commit: 87e37224c74a4336278e27b0de9e2223701439ae
Author: Sergey Sharybin
Date:   Tue Feb 20 10:47:01 2018 +0100
Branches: master
https://developer.blender.org/rB87e37224c74a4336278e27b0de9e2223701439ae

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.

===================================================================

M	source/blender/blenkernel/intern/particle_child.c

===================================================================

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)) {



More information about the Bf-blender-cvs mailing list