From be91d4ef95760492869e6a80f9ef80da059a223f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 4 Dec 2018 16:39:21 +0100 Subject: Fix T55774: Crash when reloading clip during prefetch Simply kill prefetch jobs when reloading. Not sure what else we can do here.. --- source/blender/editors/space_clip/clip_ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/space_clip') diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c index e56ec98a232..e907fdfc570 100644 --- a/source/blender/editors/space_clip/clip_ops.c +++ b/source/blender/editors/space_clip/clip_ops.c @@ -322,6 +322,7 @@ static int reload_exec(bContext *C, wmOperator *UNUSED(op)) if (!clip) return OPERATOR_CANCELLED; + WM_jobs_kill_type(CTX_wm_manager(C), NULL, WM_JOB_TYPE_CLIP_PREFETCH); BKE_movieclip_reload(CTX_data_main(C), clip); WM_event_add_notifier(C, NC_MOVIECLIP | NA_EDITED, clip); -- cgit v1.2.3