diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-03-20 10:39:02 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-03-20 10:39:02 +0400 |
commit | 9d4b54b44fccabffeebd45c86f8e344e67327ad3 (patch) | |
tree | acea295ec1366e74290df924183c5dd013f80ee0 /source | |
parent | eedde311bb58764f238e02a369d947402fccaec9 (diff) |
Fix T39271: Crash in MCE with "p" shortcut without clip
Weird nobody noticed this before, issue exists in 2.69 as well..
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_clip/clip_editor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c index 18652aabefe..d417776b1f2 100644 --- a/source/blender/editors/space_clip/clip_editor.c +++ b/source/blender/editors/space_clip/clip_editor.c @@ -974,6 +974,10 @@ static bool prefetch_check_early_out(const bContext *C) int first_uncached_frame, end_frame; int clip_len; + if (clip == NULL) { + return true; + } + clip_len = BKE_movieclip_get_duration(clip); /* check whether all the frames from prefetch range are cached */ |