From 29732f5d4f2d1619613f318a8086a5464510acb1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 26 Jul 2013 04:36:53 +0000 Subject: [PATCH] fix [#36283] Crash by activating "Clear Active" in Movie Clip Editor --- source/blender/editors/space_clip/tracking_ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index 7d7149e22ff..49b87a6160a 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -1711,7 +1711,9 @@ static int clear_track_path_exec(bContext *C, wmOperator *op) if (clear_active) { track = BKE_tracking_track_get_active(tracking); - BKE_tracking_track_path_clear(track, framenr, action); + if (track) { + BKE_tracking_track_path_clear(track, framenr, action); + } } else { track = tracksbase->first;