summaryrefslogtreecommitdiff
path: root/scene/2d/cpu_particles_2d.cpp
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2019-06-20 11:20:27 -0700
committerclayjohn <claynjohn@gmail.com>2019-06-25 22:07:29 -0700
commitd59dbda24f780b1e52681b604ead650acd065a22 (patch)
tree13b1874a0f5a5df3bc42475e4c0a503a908b4249 /scene/2d/cpu_particles_2d.cpp
parent5a29be31b3055e218107df50bbbebdc0865026e8 (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.cpp3
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();
}
}