[Bf-blender-cvs] [14af65b] master: Fix for calculation of the key velocity on the last child hair segment.

Lukas Tönne noreply at git.blender.org
Tue Jan 20 09:53:34 CET 2015


Commit: 14af65b3ef499ed50c5de90102ade7187cbb9db9
Author: Lukas Tönne
Date:   Tue Jan 13 17:28:53 2015 +0100
Branches: master
https://developer.blender.org/rB14af65b3ef499ed50c5de90102ade7187cbb9db9

Fix for calculation of the key velocity on the last child hair segment.

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

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 ea95255..ae95b8f 100644
--- a/source/blender/blenkernel/intern/particle_child.c
+++ b/source/blender/blenkernel/intern/particle_child.c
@@ -347,7 +347,7 @@ void psys_apply_child_modifiers(ParticleThreadContext *ctx, struct ListBase *mod
 				if (ma && draw_col_ma)
 					get_strand_normal(ma, ornor, cur_length, (key-1)->vel);
 			}
-			else if (k == totkeys-1) {
+			if (k == totkeys-1) {
 				/* last key */
 				sub_v3_v3v3(key->vel, key->co, (key-1)->co);
 			}




More information about the Bf-blender-cvs mailing list