diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-04 18:39:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-04 18:40:04 +0300 |
commit | be91d4ef95760492869e6a80f9ef80da059a223f (patch) | |
tree | 2de109bef16d2f8f2fbb3993b658f65dcdf07552 /source/blender/editors/space_clip/clip_ops.c | |
parent | b9b88d59ddde50bd1de1f7f96b1c91cbdaf7497b (diff) |
Fix T55774: Crash when reloading clip during prefetch
Simply kill prefetch jobs when reloading. Not sure what else
we can do here..
Diffstat (limited to 'source/blender/editors/space_clip/clip_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |