From d59dbda24f780b1e52681b604ead650acd065a22 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 20 Jun 2019 11:20:27 -0700 Subject: update emitting status on one-shot particles --- scene/3d/cpu_particles.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scene/3d/cpu_particles.cpp') diff --git a/scene/3d/cpu_particles.cpp b/scene/3d/cpu_particles.cpp index cff147ba74..6415b2d0a8 100644 --- a/scene/3d/cpu_particles.cpp +++ b/scene/3d/cpu_particles.cpp @@ -503,7 +503,8 @@ void CPUParticles::_particles_process(float p_delta) { time = Math::fmod(time, lifetime); cycle++; if (one_shot && cycle > 0) { - emitting = false; + set_emitting(false); + _change_notify(); } } -- cgit v1.2.3