Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-03 16:18:14 +0400
committerTon Roosendaal <ton@blender.org>2006-07-03 16:18:14 +0400
commit3c11a1bd61d2a0cf81f56c550ece9d735c8a55b7 (patch)
tree730fbff5f3d9afee057edc63aede4c70fed24e57 /source
parent71de727f3ed733f5ed45659097edf4510795a59a (diff)
Bugfix #4586
TimeLine window; option [>>] (skip to next keyframe) crashed on actions with NULL ipo pointers.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/edittime.c14
1 files changed, 8 insertions, 6 deletions
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);
+ }
}
}