Blender  V3.3
deg_eval_runtime_backup_scene.cc
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 
9 
10 #include "BKE_sound.h"
11 
12 #include "DNA_rigidbody_types.h"
13 #include "DNA_scene_types.h"
14 
15 namespace blender::deg {
16 
18 {
19  reset();
20 }
21 
23 {
24  sound_scene = nullptr;
25  playback_handle = nullptr;
26  sound_scrub_handle = nullptr;
27  speaker_handles = nullptr;
29 }
30 
32 {
34 
39 
40  if (scene->rigidbody_world != nullptr) {
42  }
43 
44  /* Clear pointers stored in the scene, so they are not freed when copied-on-written datablock
45  * is freed for re-allocation. */
46  scene->sound_scene = nullptr;
47  scene->playback_handle = nullptr;
48  scene->sound_scrub_handle = nullptr;
49  scene->speaker_handles = nullptr;
50 
52 }
53 
55 {
60 
61  if (scene->rigidbody_world != nullptr) {
63  }
64 
66 
68 
69  reset();
70 }
71 
72 } // namespace blender::deg
void BKE_sound_lock(void)
void BKE_sound_unlock(void)
Types and defines for representing Rigid Body entities.
SceneBackup(const Depsgraph *depsgraph)
Scene scene
const Depsgraph * depsgraph
void * sound_scrub_handle
struct RigidBodyWorld * rigidbody_world
void * sound_scene
void * speaker_handles
void * playback_handle