Blender V5.0
deg_eval_runtime_backup_movieclip.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10
11#include "DNA_movieclip_types.h"
12
13namespace blender::deg {
14
16{
17 reset();
18}
19
21{
22 anim = nullptr;
23 cache = nullptr;
24}
25
27{
28 anim = movieclip->anim;
29 cache = movieclip->cache;
30 /* Clear pointers stored in the movie clip, so they are not freed when copied-on-written
31 * datablock is freed for re-allocation. */
32 movieclip->anim = nullptr;
33 movieclip->cache = nullptr;
34}
35
37{
38 movieclip->anim = anim;
39 movieclip->cache = cache;
40
41 reset();
42}
43
44} // namespace blender::deg
struct MovieClipCache * cache
struct MovieReader * anim