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:
-rw-r--r--source/blender/editors/space_clip/tracking_ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c
index aab7188c069..e5bf053aa1c 100644
--- a/source/blender/editors/space_clip/tracking_ops.c
+++ b/source/blender/editors/space_clip/tracking_ops.c
@@ -2873,10 +2873,11 @@ static int clean_tracks_exec(bContext *C, wmOperator *op)
BKE_tracking_free_track(track);
BLI_freelinkN(&clip->tracking.tracks, track);
+ track= NULL;
}
/* happens when all tracking segments are not long enough */
- if(track->markersnr==0) {
+ if(track && track->markersnr==0) {
if(track==act_track)
clip->tracking.act_track= NULL;