diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-10 18:22:49 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-10 18:24:08 +0300 |
commit | 825892ae7aab423124ee39524ca0278e8ba8633b (patch) | |
tree | a384b51756622b9498a5434b67c995d714990f5a /source/blender/editors/space_clip/tracking_ops.c | |
parent | 3560e36ee93f74d2ec5f02a30381eab3e1d66e62 (diff) |
Fix T45017: Crash when running 'track markers' operator with no clip loaded.
CLIP_OT_track_markers was missing a poll callback.
Diffstat (limited to 'source/blender/editors/space_clip/tracking_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index 538c1a4e5ea..5e64d87facd 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -1426,6 +1426,7 @@ static int track_markers_invoke(bContext *C, wmOperator *op, const wmEvent *UNUS } clip = ED_space_clip_get_clip(sc); + BLI_assert(clip); framenr = ED_space_clip_get_clip_frame_number(sc); if (WM_jobs_test(CTX_wm_manager(C), sa, WM_JOB_TYPE_ANY)) { @@ -1504,6 +1505,7 @@ void CLIP_OT_track_markers(wmOperatorType *ot) ot->exec = track_markers_exec; ot->invoke = track_markers_invoke; ot->modal = track_markers_modal; + ot->poll = ED_space_clip_tracking_poll; /* flags */ ot->flag = OPTYPE_UNDO; |