[Bf-blender-cvs] [a1d05ac2a16] blender-v2.79a-release: Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker
Sergey Sharybin
noreply at git.blender.org
Mon Jan 8 17:24:08 CET 2018
Commit: a1d05ac2a16014ef016cb7d0ce548391b627e222
Author: Sergey Sharybin
Date: Mon Jan 8 14:10:50 2018 +0100
Branches: blender-v2.79a-release
https://developer.blender.org/rBa1d05ac2a16014ef016cb7d0ce548391b627e222
Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker
Simple fix, which is totally safe for 2.79a!
===================================================================
M source/blender/editors/space_clip/tracking_ops.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list