Blender  V3.3
deg_eval_runtime_backup_object.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 "DNA_object_types.h"
11 #include "DNA_session_uuid_types.h"
12 
13 #include "BLI_session_uuid.h"
14 
17 
18 struct Object;
19 
20 namespace blender::deg {
21 
22 struct Depsgraph;
23 
25  public:
27 
28  /* Make a backup of object's evaluation runtime data, additionally
29  * make object to be safe for free without invalidating backed up
30  * pointers. */
31  void init_from_object(Object *object);
34 
35  /* Restore all fields to the given object. */
36  void restore_to_object(Object *object);
37  /* NOTE: Will free all runtime data which has not been restored. */
40 
42  short base_flag;
43  unsigned short base_local_view_bits;
46 };
47 
48 } // namespace blender::deg
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
Object is a sort of wrapper for general info.
Map< SessionUUID, bPoseChannel_Runtime > pose_channel_runtime_data
Map< SessionUUID, ModifierDataBackup > modifier_runtime_data
const Depsgraph * depsgraph