Blender V5.0
deg_eval_runtime_backup_animation.h
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
9#pragma once
10
11#include <string>
12
13#include "BLI_vector.hh"
14
15struct ID;
16
17namespace blender::deg {
18
19struct Depsgraph;
20
22 public:
24 AnimationValueBackup(const std::string &rna_path, int array_index, float value);
25
27 AnimationValueBackup(AnimationValueBackup &&other) noexcept = default;
28
31
32 std::string rna_path;
34 float value;
35};
36
37/* Backup of animated properties values. */
39 public:
41
42 void reset();
43
44 void init_from_id(ID *id);
45 void restore_to_id(ID *id);
46
49};
50
51} // namespace blender::deg
BPy_StructRNA * depsgraph
Vector< AnimationValueBackup > values_backup
AnimationValueBackup(AnimationValueBackup &&other) noexcept=default
AnimationValueBackup & operator=(AnimationValueBackup &&other)=default
AnimationValueBackup & operator=(const AnimationValueBackup &other)=default
AnimationValueBackup(const AnimationValueBackup &other)=default
Definition DNA_ID.h:414