Fix particles emitting at old location
This commit is contained in:
parent
cad93bc691
commit
91b7c80d28
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue