diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-01-08 16:10:50 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-01-08 16:10:50 +0300 |
commit | 3ee2ed3049b9860c03084876bd96641b2f1cf5f4 (patch) | |
tree | c153dc5d528db0e1a9a8fe041ca06df7c750c7bc /source/blender/editors/space_clip/tracking_ops.c | |
parent | 96e507d9890e42695ea0c6bff0c8fa5c480bbb5a (diff) |
Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker
Simple fix, which is totally safe for 2.79a!
Diffstat (limited to 'source/blender/editors/space_clip/tracking_ops.c')
-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 db891dba294..2ec4f96931f 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -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); |