Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 1,272 Lines • ▼ Show 20 Lines | if (recalc & ID_RECALC_AUDIO_MUTE) { | ||||
| BKE_sound_mute_scene(scene, is_mute); | BKE_sound_mute_scene(scene, is_mute); | ||||
| } | } | ||||
| if (recalc & ID_RECALC_AUDIO_LISTENER) { | if (recalc & ID_RECALC_AUDIO_LISTENER) { | ||||
| BKE_sound_update_scene_listener(scene); | BKE_sound_update_scene_listener(scene); | ||||
| } | } | ||||
| BKE_sound_update_scene(depsgraph, scene); | BKE_sound_update_scene(depsgraph, scene); | ||||
| } | } | ||||
| void BKE_scene_update_tag_audio_volume(Depsgraph *UNUSED(depsgraph), Scene *scene) | |||||
| { | |||||
| BLI_assert(DEG_is_evaluated_id(&scene->id)); | |||||
| /* The volume is actually updated in BKE_scene_update_sound(), from either | |||||
| * scene_graph_update_tagged() or from BKE_scene_graph_update_for_newframe(). */ | |||||
| DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_VOLUME); | |||||
sergey: You can't be using `DEG_id_tag_update` during evaluation.
Write the recalc flag directly… | |||||
| } | |||||
| /* TODO(sergey): This actually should become view_layer_graph or so. | /* TODO(sergey): This actually should become view_layer_graph or so. | ||||
| * Same applies to update_for_newframe. | * Same applies to update_for_newframe. | ||||
| * | * | ||||
| * If only_if_tagged is truth then the function will do nothing if the dependency graph is up | * If only_if_tagged is truth then the function will do nothing if the dependency graph is up | ||||
| * to date already. | * to date already. | ||||
| */ | */ | ||||
| static void scene_graph_update_tagged(Depsgraph *depsgraph, Main *bmain, bool only_if_tagged) | static void scene_graph_update_tagged(Depsgraph *depsgraph, Main *bmain, bool only_if_tagged) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,137 Lines • Show Last 20 Lines | |||||
You can't be using DEG_id_tag_update during evaluation.
Write the recalc flag directly: scene->id.recalc |= ID_RECALC_AUDIO_VOLUME.