diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-08 23:51:14 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-08 23:51:14 +0400 |
commit | eca9a4ff40fe2a500d300820f564f1a8bfcf4a97 (patch) | |
tree | 97c50c3e9bc9bfab6b97ae78459177a4255576a6 /source/blender/editors/space_clip | |
parent | 8bfa48384d3604cfc5fd265e89bf86f129242542 (diff) |
Fix #29828: Reloading background movie clip crashes Blender
Crash was caused by invalidating scopes used by space clip editors. It shouldn't
actually happen in movie clip reload operator due to it will happen on NA_EDITED
notifier handler sent to movie clip context.
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r-- | source/blender/editors/space_clip/clip_ops.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c index fe0b58ddda9..c7d09c2edfc 100644 --- a/source/blender/editors/space_clip/clip_ops.c +++ b/source/blender/editors/space_clip/clip_ops.c @@ -220,14 +220,11 @@ void CLIP_OT_open(wmOperatorType *ot) static int reload_exec(bContext *C, wmOperator *UNUSED(op)) { - SpaceClip *sc= CTX_wm_space_clip(C); MovieClip *clip= CTX_data_edit_movieclip(C); if(!clip) return OPERATOR_CANCELLED; - sc->scopes.ok= 0; - BKE_movieclip_reload(clip); WM_event_add_notifier(C, NC_MOVIECLIP|NA_EDITED, clip); |