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