summaryrefslogtreecommitdiffstats
path: root/scene/2d/particles_2d.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/2d/particles_2d.cpp
parent5a29be31b3055e218107df50bbbebdc0865026e8 (diff)
downloadredot-engine-64ecc8a5a3e22f92cf480f65249ac5468b9b5b89.tar.gz
properly set emitting when particles restart
Diffstat (limited to 'scene/2d/particles_2d.cpp')
-rw-r--r--scene/2d/particles_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp
index 9701998f5d..823794c3ba 100644
--- a/scene/2d/particles_2d.cpp
+++ b/scene/2d/particles_2d.cpp
@@ -278,6 +278,7 @@ void Particles2D::_validate_property(PropertyInfo &property) const {
void Particles2D::restart() {
VS::get_singleton()->particles_restart(particles);
+ VS::get_singleton()->particles_set_emitting(particles, true);
}
void Particles2D::_notification(int p_what) {