Merge pull request #57302 from GanidhuAbey/particle_bug

Fix particles freezing by resetting particle timer
This commit is contained in:
Rémi Verschelde 2022-05-25 10:28:19 +02:00 committed by GitHub
commit 1c99b7415f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -540,11 +540,8 @@ void ParticlesStorage::particles_emit(RID p_particles, const Transform3D &p_tran
_particles_allocate_emission_buffer(particles);
}
if (particles->inactive) {
//in case it was inactive, make active again
particles->inactive = false;
particles->inactive_time = 0;
}
int32_t idx = particles->emission_buffer->particle_count;
if (idx < particles->emission_buffer->particle_max) {