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/3d/cpu_particles.cpp | |
parent | 5a29be31b3055e218107df50bbbebdc0865026e8 (diff) |
update emitting status on one-shot particles
Diffstat (limited to 'scene/3d/cpu_particles.cpp')
-rw-r--r-- | scene/3d/cpu_particles.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } } |