Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-01-08 16:10:50 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-01-08 19:23:09 +0300
commita1d05ac2a16014ef016cb7d0ce548391b627e222 (patch)
tree38a91747611a085c62d0e18ebd241417edbf1145
parent0c365472b6f19378f276ec8a0c8ece5d61324a87 (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.c4
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);