Blender V4.3
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
9#pragma once
10
11#include "BKE_modifier.hh"
12
14
15namespace blender::deg {
16
17struct Depsgraph;
18
20 public:
22 AnimationValueBackup(const string &rna_path, int array_index, float value);
23
25 AnimationValueBackup(AnimationValueBackup &&other) noexcept = default;
26
29
30 string rna_path;
32 float value;
33};
34
35/* Backup of animated properties values. */
37 public:
39
40 void reset();
41
42 void init_from_id(ID *id);
43 void restore_to_id(ID *id);
44
47};
48
49} // namespace blender::deg
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
const Depsgraph * depsgraph
Definition DNA_ID.h:413