Fix particles emitting at old location

(cherry picked from commit 91b7c80d28)
This commit is contained in:
robfram 2021-11-07 18:53:17 +01:00 committed by Rémi Verschelde
parent a49e3bb449
commit 6247687be8
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -6115,6 +6115,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;
}