TimeLine window; option [>>] (skip to next keyframe) crashed on actions
with NULL ipo pointers.
This commit is contained in:
Ton Roosendaal
2006-07-03 12:18:14 +00:00
parent 71de727f3e
commit 3c11a1bd61

View File

@@ -312,12 +312,14 @@ void nextprev_timeline_key(short dir)
for (achan=act->chanbase.first; achan; achan=achan->next){
/* convert the ipo to a list of 'current frame elements' */
elems.first= elems.last= NULL;
make_cfra_list(achan->ipo, &elems);
closest= find_closest_cfra_elem(elems, dir, closest);
BLI_freelistN(&elems);
if(achan->ipo) {
elems.first= elems.last= NULL;
make_cfra_list(achan->ipo, &elems);
closest= find_closest_cfra_elem(elems, dir, closest);
BLI_freelistN(&elems);
}
}
}