From 3c11a1bd61d2a0cf81f56c550ece9d735c8a55b7 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 3 Jul 2006 12:18:14 +0000 Subject: Bugfix #4586 TimeLine window; option [>>] (skip to next keyframe) crashed on actions with NULL ipo pointers. --- source/blender/src/edittime.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/blender/src/edittime.c b/source/blender/src/edittime.c index b35790454fc..fcc3dfad6a0 100644 --- a/source/blender/src/edittime.c +++ b/source/blender/src/edittime.c @@ -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); + } } } -- cgit v1.2.3