summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-25 10:36:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-25 10:36:37 -0300
commit330351c6134ca09436f36238b5d4097eda437777 (patch)
tree21f2d41579865573c9afc1aaf94af78287008c25 /scene/2d
parentec00cd5c416cc060ecff254d04da20ef878afeb9 (diff)
properly update emitting property when emit timeot is used, fixes #1716
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/particles_2d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp
index f2f9625c82..39d747c436 100644
--- a/scene/2d/particles_2d.cpp
+++ b/scene/2d/particles_2d.cpp
@@ -250,6 +250,7 @@ void Particles2D::_process_particles(float p_delta) {
if (time_to_live < 0) {
emitting = false;
+ _change_notify("config/emitting");
};
};
@@ -717,6 +718,7 @@ void Particles2D::set_emitting(bool p_emitting) {
time_to_live = emit_timeout;
};
emitting=p_emitting;
+ _change_notify("config/emitting");
}
bool Particles2D::is_emitting() const {