Skip to content

Commit f6eb81e

Browse files
brechtvlBrecht Van Lommel
authored and
Brecht Van Lommel
committed
Cleanup: Fix (harmless) null pointer increment in particle code
1 parent b75b2e8 commit f6eb81e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/blender/blenkernel/intern/particle.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,9 @@ static void do_particle_interpolation(ParticleSystem *psys,
14481448

14491449
while (pind->hkey[1]->time < real_t) {
14501450
pind->hkey[1]++;
1451-
pind->vert_positions[1]++;
1451+
if (pind->mesh) {
1452+
pind->vert_positions[1]++;
1453+
}
14521454
}
14531455

14541456
pind->hkey[0] = pind->hkey[1] - 1;

0 commit comments

Comments
 (0)