diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-01-08 16:10:50 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-01-08 19:23:09 +0300 |
commit | a1d05ac2a16014ef016cb7d0ce548391b627e222 (patch) | |
tree | 38a91747611a085c62d0e18ebd241417edbf1145 | |
parent | 0c365472b6f19378f276ec8a0c8ece5d61324a87 (diff) |
Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker
Simple fix, which is totally safe for 2.79a!
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index 56c240c3d20..53cbfbe5cdd 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -1865,6 +1865,10 @@ static bool is_track_clean(MovieTrackingTrack *track, int frames, int del) } } + if (count == 0) { + ok = 0; + } + if (del) { MEM_freeN(track->markers); |