fix [#36283] Crash by activating "Clear Active" in Movie Clip Editor
authorCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jul 2013 04:36:53 +0000 (04:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jul 2013 04:36:53 +0000 (04:36 +0000)
source/blender/editors/space_clip/tracking_ops.c

index 7d7149e22ffed121aa2851e89f542d5af3dabfaf..49b87a6160ac1fcb586f2537903bc61928dd2ded 100644 (file)
@@ -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;