Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
| Show First 20 Lines • Show All 1,825 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void DepsgraphNodeBuilder::build_scene_audio(Scene *scene) | void DepsgraphNodeBuilder::build_scene_audio(Scene *scene) | ||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(scene, BuilderMap::TAG_SCENE_AUDIO)) { | if (built_map_.checkIsBuiltAndTag(scene, BuilderMap::TAG_SCENE_AUDIO)) { | ||||
| return; | return; | ||||
| } | } | ||||
| add_operation_node(&scene->id, NodeType::AUDIO, OperationCode::SOUND_EVAL); | OperationNode *sound_eval_op = add_operation_node( | ||||
| &scene->id, NodeType::AUDIO, OperationCode::SOUND_EVAL); | |||||
| sound_eval_op->set_as_entry(); | |||||
| Scene *scene_cow = get_cow_datablock(scene); | Scene *scene_cow = get_cow_datablock(scene); | ||||
| add_operation_node(&scene->id, | add_operation_node(&scene->id, | ||||
| NodeType::AUDIO, | NodeType::AUDIO, | ||||
| OperationCode::AUDIO_VOLUME, | OperationCode::AUDIO_VOLUME, | ||||
| function_bind(BKE_scene_update_tag_audio_volume, _1, scene_cow)); | function_bind(BKE_scene_update_tag_audio_volume, _1, scene_cow)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||