Blender V4.3
deg_eval_runtime_backup_scene.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
12
13struct Scene;
14
15namespace blender::deg {
16
17struct Depsgraph;
18
19/* Backup of scene runtime data. */
21 public:
23
24 void reset();
25
26 void init_from_scene(Scene *scene);
27 void restore_to_scene(Scene *scene);
28
29 /* Sound/audio related pointers of the scene itself.
30 *
31 * NOTE: Scene can not disappear after relations update, because otherwise the entire dependency
32 * graph will be gone. This means we don't need to compare original scene pointer, or worry about
33 * freeing those if they can't be restored: we just copy them over to a new scene. */
39
41};
42
43} // namespace blender::deg
SceneBackup(const Depsgraph *depsgraph)
const Depsgraph * depsgraph