Blender
V4.3
source
blender
depsgraph
intern
eval
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
11
#include "
intern/eval/deg_eval_runtime_backup_sequencer.h
"
12
13
struct
Scene
;
14
15
namespace
blender::deg
{
16
17
struct
Depsgraph;
18
19
/* Backup of scene runtime data. */
20
class
SceneBackup
{
21
public
:
22
SceneBackup
(
const
Depsgraph
*
depsgraph
);
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. */
34
void
*
sound_scene
;
35
void
*
playback_handle
;
36
void
*
sound_scrub_handle
;
37
void
*
speaker_handles
;
38
float
rigidbody_last_time
;
39
40
SequencerBackup
sequencer_backup
;
41
};
42
43
}
// namespace blender::deg
blender::deg::SceneBackup
Definition
deg_eval_runtime_backup_scene.h:20
blender::deg::SceneBackup::sound_scrub_handle
void * sound_scrub_handle
Definition
deg_eval_runtime_backup_scene.h:36
blender::deg::SceneBackup::reset
void reset()
Definition
deg_eval_runtime_backup_scene.cc:23
blender::deg::SceneBackup::playback_handle
void * playback_handle
Definition
deg_eval_runtime_backup_scene.h:35
blender::deg::SceneBackup::sound_scene
void * sound_scene
Definition
deg_eval_runtime_backup_scene.h:34
blender::deg::SceneBackup::rigidbody_last_time
float rigidbody_last_time
Definition
deg_eval_runtime_backup_scene.h:38
blender::deg::SceneBackup::sequencer_backup
SequencerBackup sequencer_backup
Definition
deg_eval_runtime_backup_scene.h:40
blender::deg::SceneBackup::speaker_handles
void * speaker_handles
Definition
deg_eval_runtime_backup_scene.h:37
blender::deg::SceneBackup::init_from_scene
void init_from_scene(Scene *scene)
Definition
deg_eval_runtime_backup_scene.cc:32
blender::deg::SceneBackup::restore_to_scene
void restore_to_scene(Scene *scene)
Definition
deg_eval_runtime_backup_scene.cc:55
blender::deg::SceneBackup::SceneBackup
SceneBackup(const Depsgraph *depsgraph)
Definition
deg_eval_runtime_backup_scene.cc:18
blender::deg::SequencerBackup
Definition
deg_eval_runtime_backup_sequencer.h:25
depsgraph
const Depsgraph * depsgraph
Definition
deg_eval_copy_on_write.cc:494
deg_eval_runtime_backup_sequencer.h
blender::deg
Definition
DEG_depsgraph_light_linking.hh:18
Scene
Definition
DNA_scene_types.h:1988
blender::deg::Depsgraph
Definition
depsgraph.hh:47
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0