diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-07-10 21:04:56 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-07-10 21:04:56 +0400 |
commit | de7592b48900221844fa8d687e9d850294c90746 (patch) | |
tree | dcd7847e24b53d32593ed4ad40c3e149714f0dcd /source/blender/render | |
parent | b62a956cc8c9402880d249d0a70c880af5813bc3 (diff) |
Fix for [#26873] Animated displacement modifier on an object doesn't work with hair particle objects
* Noise is now considered an animated texture as it changes with every frame
* Converted a few places in particles code to use the particle system's own random table instead of BLI_frand.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/convertblender.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c index 4c0ce24e3e7..0f6751850ef 100644 --- a/source/blender/render/intern/source/convertblender.c +++ b/source/blender/render/intern/source/convertblender.c @@ -1798,10 +1798,8 @@ static int render_new_particle_system(Render *re, ObjectRen *obr, ParticleSystem pa_size = pa->size; - BLI_srandom(psys->seed+a); - - r_tilt = 2.0f*(BLI_frand() - 0.5f); - r_length = BLI_frand(); + r_tilt = 2.0f*(PSYS_FRAND(a) - 0.5f); + r_length = PSYS_FRAND(a+1); if(path_nbr) { cache = psys->pathcache[a]; |