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
parent 405bff7fd8
commit 678b76d99a
Notes: blender-bot 2023-02-14 07:25:46 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 1 deletions

View File

@ -1386,7 +1386,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 {