Merge pull request #112514 from QbieShay/qbe/fix-109183

Fix CPUParticle3D not randomizing
This commit is contained in:
Rémi Verschelde
2025-11-26 23:43:47 +01:00

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();