Fix T44353, Fix T43981: random particle distribution overlaps if number is greater than 256.

This commit is contained in:
Brecht Van Lommel 2015-05-01 19:14:28 +02:00
parent b6caefdaa9
commit 86f80c481c
Notes: blender-bot 2023-02-14 09:22:40 +01:00
Referenced by issue #46484, Particle Random distribution changed between 2.74 and newer versions
Referenced by issue #44457, particle system does not spread
Referenced by issue #44353, Particle distribution overlaps if number is greater than 256
Referenced by issue #44312, Random particles not so random any more.
Referenced by issue #44177, particles appear 100s of time at the same place in random
Referenced by issue #43981, Particles - Hair - Even distribution is not even
1 changed files with 2 additions and 0 deletions

View File

@ -668,6 +668,8 @@ static void exec_distribute_parent(TaskPool *UNUSED(pool), void *taskdata, int U
ParticleSystem *psys= task->ctx->sim.psys;
ParticleData *pa;
int p;
BLI_rng_skip(task->rng, PSYS_RND_DIST_SKIP * task->begin);
pa= psys->particles + task->begin;
switch (psys->part->from) {