Blender V4.3
deg_eval_runtime_backup_object.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 "DNA_object_types.h"
13
14#include "BKE_object_types.hh"
15
16#include "BLI_session_uid.h"
17
21
22struct Object;
23
24namespace blender::deg {
25
26struct Depsgraph;
27
29 public:
31
32 /* Make a backup of object's evaluation runtime data, additionally
33 * make object to be safe for free without invalidating backed up
34 * pointers. */
35 void init_from_object(Object *object);
38
39 /* Restore all fields to the given object. */
40 void restore_to_object(Object *object);
41 /* NOTE: Will free all runtime data which has not been restored. */
44
46 optional<LightLinkingRuntime> light_linking_runtime;
47 short base_flag;
48 unsigned short base_local_view_bits;
51};
52
53} // namespace blender::deg
Object is a sort of wrapper for general info.
Map< SessionUID, bPoseChannel_Runtime > pose_channel_runtime_data
optional< LightLinkingRuntime > light_linking_runtime
Map< int, ModifierDataBackup > modifier_runtime_data
const Depsgraph * depsgraph