Skip to content

Commit 9303ccd

Browse files
committed
Merge pull request godotengine#101596 from TCROC/fix-gpu-particles-3d-emitting-finished-signal-on-ready
Fix GPUParticles3D emitting `finished` signal on ready
2 parents ecc8d28 + d702e02 commit 9303ccd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scene/3d/gpu_particles_3d.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ void GPUParticles3D::set_one_shot(bool p_one_shot) {
9292

9393
if (is_emitting()) {
9494
if (!one_shot) {
95-
restart();
95+
if (!use_fixed_seed) {
96+
set_seed(Math::rand());
97+
}
98+
99+
RenderingServer::get_singleton()->particles_restart(particles);
96100
}
97101
}
98102
}

0 commit comments

Comments
 (0)