Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled...
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 8 Jan 2018 13:10:50 +0000 (14:10 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 8 Jan 2018 13:10:50 +0000 (14:10 +0100)
Simple fix, which is totally safe for 2.79a!

source/blender/editors/space_clip/tracking_ops.c

index db891dba29408522d6536c3a042d56a4b7007f7b..2ec4f96931f63585051500d26bb81929a885eb1a 100644 (file)
@@ -1858,6 +1858,10 @@ static bool is_track_clean(MovieTrackingTrack *track, int frames, int del)
                }
        }
 
+       if (count == 0) {
+               ok = 0;
+       }
+
        if (del) {
                MEM_freeN(track->markers);