summaryrefslogtreecommitdiff
path: root/scene/3d/cpu_particles.cpp
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2019-06-21 22:33:11 -0700
committerclayjohn <claynjohn@gmail.com>2019-06-21 22:33:11 -0700
commit64ecc8a5a3e22f92cf480f65249ac5468b9b5b89 (patch)
tree68c17bee47e22471ae186125d7bab67b9514d35f /scene/3d/cpu_particles.cpp
parent5a29be31b3055e218107df50bbbebdc0865026e8 (diff)
properly set emitting when particles restart
Diffstat (limited to 'scene/3d/cpu_particles.cpp')
-rw-r--r--scene/3d/cpu_particles.cpp2
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();