aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/particles.cpp
diff options
context:
space:
mode:
authorZher Huei Lee2017-08-12 16:13:29 +0800
committerZher Huei Lee2017-08-12 18:37:01 +0800
commita625d7edfc60255f019186fabe7f34eb5438295c (patch)
treeeab6399d8e214ac759b3f9e46ccf13a3e74ff56d /scene/3d/particles.cpp
parent23f6d3fa69935c90c6cdcee342ae99d226e9b4ab (diff)
downloadgodot-a625d7edfc60255f019186fabe7f34eb5438295c.tar.gz
godot-a625d7edfc60255f019186fabe7f34eb5438295c.tar.zst
godot-a625d7edfc60255f019186fabe7f34eb5438295c.zip
Diffstat (limited to 'scene/3d/particles.cpp')
-rw-r--r--scene/3d/particles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/particles.cpp b/scene/3d/particles.cpp
index 081caf441..d83469da6 100644
--- a/scene/3d/particles.cpp
+++ b/scene/3d/particles.cpp
@@ -63,6 +63,8 @@ void Particles::set_one_shot(bool p_one_shot) {
one_shot = p_one_shot;
VS::get_singleton()->particles_set_one_shot(particles, one_shot);
+ if (!one_shot && emitting)
+ VisualServer::get_singleton()->particles_restart(particles);
}
void Particles::set_pre_process_time(float p_time) {