Blender  V3.3
deg_eval_runtime_backup_movieclip.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2019 Blender Foundation. All rights reserved. */
3 
9 
10 #include "DNA_movieclip_types.h"
11 
12 #include "BLI_utildefines.h"
13 
14 namespace blender::deg {
15 
17 {
18  reset();
19 }
20 
22 {
23  anim = nullptr;
24  cache = nullptr;
25 }
26 
28 {
29  anim = movieclip->anim;
30  cache = movieclip->cache;
31  /* Clear pointers stored in the movie clip, so they are not freed when copied-on-written
32  * datablock is freed for re-allocation. */
33  movieclip->anim = nullptr;
34  movieclip->cache = nullptr;
35 }
36 
38 {
39  movieclip->anim = anim;
40  movieclip->cache = cache;
41 
42  reset();
43 }
44 
45 } // namespace blender::deg
struct MovieClipCache * cache
struct anim * anim
Definition: IMB_anim.h:71