Merge pull request #101596 from TCROC/fix-gpu-particles-3d-emitting-finished-signal-on-ready

Fix GPUParticles3D emitting `finished` signal on ready
This commit is contained in:
Thaddeus Crews 2025-01-20 10:05:45 -06:00
commit 9303ccd337
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -92,7 +92,11 @@ void GPUParticles3D::set_one_shot(bool p_one_shot) {
if (is_emitting()) { if (is_emitting()) {
if (!one_shot) { if (!one_shot) {
restart(); if (!use_fixed_seed) {
set_seed(Math::rand());
}
RenderingServer::get_singleton()->particles_restart(particles);
} }
} }
} }