Blender V4.3
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
10
11#include "DNA_movieclip_types.h"
12
13#include "BLI_utildefines.h"
14
15namespace blender::deg {
16
18{
19 reset();
20}
21
23{
24 anim = nullptr;
25 cache = nullptr;
26}
27
29{
30 anim = movieclip->anim;
31 cache = movieclip->cache;
32 /* Clear pointers stored in the movie clip, so they are not freed when copied-on-written
33 * datablock is freed for re-allocation. */
34 movieclip->anim = nullptr;
35 movieclip->cache = nullptr;
36}
37
39{
40 movieclip->anim = anim;
41 movieclip->cache = cache;
42
43 reset();
44}
45
46} // namespace blender::deg
struct MovieClipCache * cache
struct ImBufAnim * anim