diff options
author | clayjohn <claynjohn@gmail.com> | 2019-06-21 22:33:11 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-06-21 22:33:11 -0700 |
commit | 64ecc8a5a3e22f92cf480f65249ac5468b9b5b89 (patch) | |
tree | 68c17bee47e22471ae186125d7bab67b9514d35f /scene/3d/cpu_particles.cpp | |
parent | 5a29be31b3055e218107df50bbbebdc0865026e8 (diff) |
properly set emitting when particles restart
Diffstat (limited to 'scene/3d/cpu_particles.cpp')
-rw-r--r-- | scene/3d/cpu_particles.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/cpu_particles.cpp b/scene/3d/cpu_particles.cpp index cff147ba74..383f02ca35 100644 --- a/scene/3d/cpu_particles.cpp +++ b/scene/3d/cpu_particles.cpp @@ -225,6 +225,8 @@ void CPUParticles::restart() { frame_remainder = 0; cycle = 0; + set_emitting(true); + { int pc = particles.size(); PoolVector<Particle>::Write w = particles.write(); |