Correct error in 405bff7fd8

Was adding 1 to dietime twice in init_particle_interpolation.
This commit is contained in:
Campbell Barton 2022-04-14 17:02:08 +10:00 committed by Philipp Oeser
parent d0bcb6efea
commit 49e1144832
Notes: blender-bot 2023-02-14 10:18:56 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 1 additions and 1 deletions

View File

@ -1391,7 +1391,7 @@ static void init_particle_interpolation(Object *ob,
if (get_pointcache_times_for_particle(pind->cache, pa - psys->particles, &start, &dietime)) {
pind->birthtime = MAX2(pind->birthtime, start);
pind->dietime = MIN2(pind->dietime, dietime + 1);
pind->dietime = MIN2(pind->dietime, dietime);
}
}
else {