Fix CPUParticle3D not randomizing

This commit is contained in:
Qbieshay
2025-11-07 17:23:40 +01:00
parent cb3af5afff
commit 3a66d88be2

View File

@ -828,7 +828,7 @@ void CPUParticles3D::_particles_process(double p_delta) {
tex_anim_offset = curve_parameters[PARAM_ANGLE]->sample(tv);
}
p.seed = seed + uint32_t(1) + i + cycle;
p.seed = seed + uint32_t(1) + i + cycle * pcount;
rng->set_seed(p.seed);
p.angle_rand = rng->randf();
p.scale_rand = rng->randf();