[Bf-blender-cvs] [9d4b54b] master: Fix T39271: Crash in MCE with "p" shortcut without clip
Sergey Sharybin
noreply at git.blender.org
Thu Mar 20 07:39:43 CET 2014
Commit: 9d4b54b44fccabffeebd45c86f8e344e67327ad3
Author: Sergey Sharybin
Date: Thu Mar 20 12:39:02 2014 +0600
https://developer.blender.org/rB9d4b54b44fccabffeebd45c86f8e344e67327ad3
Fix T39271: Crash in MCE with "p" shortcut without clip
Weird nobody noticed this before, issue exists in 2.69 as well..
===================================================================
M source/blender/editors/space_clip/clip_editor.c
===================================================================
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c
index 18652aa..d417776 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 */
More information about the Bf-blender-cvs
mailing list