From 91b7c80d2861666bf2981b90510728f6d3ba1a26 Mon Sep 17 00:00:00 2001 From: robfram Date: Sun, 7 Nov 2021 18:53:17 +0100 Subject: [PATCH] Fix particles emitting at old location --- drivers/gles3/rasterizer_storage_gles3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index c063e488b7a..d238fff99c0 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -6126,6 +6126,9 @@ void RasterizerStorageGLES3::particles_set_emitting(RID p_particles, bool p_emit Particles *particles = particles_owner.getornull(p_particles); ERR_FAIL_COND(!particles); + if (p_emitting && !particles->emitting) { + particles_request_process(p_particles); + } particles->emitting = p_emitting; }