Merge pull request #25551 from JFonS/fix_rogue_cpu_particles

Fix local_delta when resetting CPUParticles
This commit is contained in:
Rémi Verschelde 2019-02-08 12:17:16 +01:00 committed by GitHub
commit 17d92c2b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ void CPUParticles2D::_particles_process(float p_delta) {
if (restart_time >= prev_time) {
restart = true;
if (fractional_delta) {
local_delta = (1.0 - restart_time + time) * lifetime;
local_delta = (lifetime - restart_time + time) * lifetime;
}
} else if (restart_time < time) {