diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-27 17:29:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 17:29:40 +0200 |
commit | 0636f709af58adfb04d9326192ae915f389c59f7 (patch) | |
tree | 251181b9f8526b5bc7b38d7a3b66263cac1248f4 /scene/2d/cpu_particles_2d.cpp | |
parent | fca9f0bb7f5a378c2270449a0f830d6ad82f3885 (diff) | |
parent | d59dbda24f780b1e52681b604ead650acd065a22 (diff) | |
download | redot-engine-0636f709af58adfb04d9326192ae915f389c59f7.tar.gz |
Merge pull request #29937 from clayjohn/particles-one-shot-bug
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 fba1c26d1c..faa0a08d10 100644 --- a/scene/2d/cpu_particles_2d.cpp +++ b/scene/2d/cpu_particles_2d.cpp @@ -532,7 +532,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(); } } |