diff options
author | clayjohn <claynjohn@gmail.com> | 2019-06-20 11:20:27 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-06-25 22:07:29 -0700 |
commit | d59dbda24f780b1e52681b604ead650acd065a22 (patch) | |
tree | 13b1874a0f5a5df3bc42475e4c0a503a908b4249 /scene/2d/cpu_particles_2d.cpp | |
parent | 5a29be31b3055e218107df50bbbebdc0865026e8 (diff) |
update emitting status on one-shot particles
Diffstat (limited to 'scene/2d/cpu_particles_2d.cpp')
-rw-r--r-- | scene/2d/cpu_particles_2d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/cpu_particles_2d.cpp b/scene/2d/cpu_particles_2d.cpp index a8d72bb774..55870d7912 100644 --- a/scene/2d/cpu_particles_2d.cpp +++ b/scene/2d/cpu_particles_2d.cpp @@ -530,7 +530,8 @@ void CPUParticles2D::_particles_process(float p_delta) { time = Math::fmod(time, lifetime); cycle++; if (one_shot && cycle > 0) { - emitting = false; + set_emitting(false); + _change_notify(); } } |