diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-26 08:36:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-26 08:36:53 +0400 |
commit | 29732f5d4f2d1619613f318a8086a5464510acb1 (patch) | |
tree | dae8610396c03b64cd1354253a6a6668a00cc335 /source/blender | |
parent | 4f8fd8c68bc4d833f48e8e67ca583b496d0c125b (diff) |
fix [#36283] Crash by activating "Clear Active" in Movie Clip Editor
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |