Blender V5.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
8
9#pragma once
10
11#include <optional>
12
13#include "DNA_object_types.h"
15
16#include "BKE_object_types.hh"
17
18#include "BLI_map.hh"
19
21
22namespace blender {
23
24struct Object;
25
26namespace deg {
27
28struct Depsgraph;
29
31 public:
32 ObjectRuntimeBackup(const Depsgraph *depsgraph);
33
34 /* Make a backup of object's evaluation runtime data, additionally
35 * make object to be safe for free without invalidating backed up
36 * pointers. */
37 void init_from_object(Object *object);
40
41 /* Restore all fields to the given object. */
42 void restore_to_object(Object *object);
43 /* NOTE: Will free all runtime data which has not been restored. */
46
48 std::optional<LightLinkingRuntime> light_linking_runtime;
49 short base_flag;
50 unsigned short base_local_view_bits;
53};
54
55} // namespace deg
56} // namespace blender
Object is a sort of wrapper for general info.
Map< SessionUID, bPoseChannel_Runtime > pose_channel_runtime_data
Map< int, ModifierDataBackup > modifier_runtime_data
std::optional< LightLinkingRuntime > light_linking_runtime
BMesh Iterators.