Make random child length work again with the spiral kink mode.

This commit is contained in:
Lukas Tönne 2015-01-14 10:08:45 +01:00
parent c2a7f26cbc
commit dcfa75bc89
1 changed files with 1 additions and 1 deletions

View File

@ -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;