Blender V4.5
deg_eval_runtime_backup_sequence.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_sequence_types.h"
12
13#include "BLI_listbase.h"
14
15namespace blender::deg {
16
17StripBackup::StripBackup(const Depsgraph * /*depsgraph*/)
18{
19 reset();
20}
21
23{
24 scene_sound = nullptr;
26}
27
29{
30 scene_sound = strip->scene_sound;
31 anims = strip->anims;
32
33 strip->scene_sound = nullptr;
35}
36
38{
39 strip->scene_sound = scene_sound;
40 strip->anims = anims;
41 reset();
42}
43
45{
46 return (scene_sound == nullptr) && BLI_listbase_is_empty(&anims);
47}
48
49} // namespace blender::deg
BLI_INLINE void BLI_listbase_clear(ListBase *lb)
BLI_INLINE bool BLI_listbase_is_empty(const ListBase *lb)
void * scene_sound
ListBase anims