Blender  V3.3
deg_eval_runtime_backup_animation.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2019 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #include "BKE_modifier.h"
11 
12 #include "intern/depsgraph_type.h"
13 
14 namespace blender::deg {
15 
16 struct Depsgraph;
17 
19  public:
20  AnimationValueBackup() = default;
21  AnimationValueBackup(const string &rna_path, int array_index, float value);
22 
23  AnimationValueBackup(const AnimationValueBackup &other) = default;
24  AnimationValueBackup(AnimationValueBackup &&other) noexcept = default;
25 
28 
29  string rna_path;
31  float value;
32 };
33 
34 /* Backup of animated properties values. */
36  public:
38 
39  void reset();
40 
41  void init_from_id(ID *id);
42  void restore_to_id(ID *id);
43 
46 };
47 
48 } // namespace blender::deg
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
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:368