From dcfa75bc89363971c3638780682f05021f7f00cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Wed, 14 Jan 2015 10:08:45 +0100 Subject: [PATCH] Make random child length work again with the spiral kink mode. --- source/blender/blenkernel/intern/particle_child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/particle_child.c b/source/blender/blenkernel/intern/particle_child.c index 358e34e3f78..16e8869d7cf 100644 --- a/source/blender/blenkernel/intern/particle_child.c +++ b/source/blender/blenkernel/intern/particle_child.c @@ -213,7 +213,7 @@ static void do_kink_spiral(ParticleThreadContext *ctx, ParticleTexture *ptex, co for (k = 0, key = keys; k < totkeys-1; k++, key++) totlen += len_v3v3((key+1)->co, key->co); - cutlen = totlen - fabsf(kink_amp); + cutlen = max_ff(ptex->length * totlen - fabsf(kink_amp), 0.0f); zero_v3(spiral_start); len = 0.0f;