diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 13:27:24 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 13:39:06 +0300 |
commit | d31f79a9bc6aff3c3f372e2eabbb50e07bc74193 (patch) | |
tree | c478398e2866dba485fbf62daa9c459ad9b8bc60 /source/blender/blenloader | |
parent | 1f065df03e66b865137252db594991150c51d1bc (diff) |
Writefile: Cleanup MovieClip runtime data.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index eb85fc95e4a..c55c3c3404a 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -3391,6 +3391,11 @@ static void write_movieReconstruction(WriteData *wd, MovieTrackingReconstruction static void write_movieclip(WriteData *wd, MovieClip *clip, const void *id_address) { if (clip->id.us > 0 || wd->use_memfile) { + /* Clean up, important in undo case to reduce false detection of changed datablocks. */ + clip->anim = NULL; + clip->tracking_context = NULL; + clip->tracking.stats = NULL; + MovieTracking *tracking = &clip->tracking; MovieTrackingObject *object; |