Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
| Show First 20 Lines • Show All 1,730 Lines • ▼ Show 20 Lines | void DepsgraphNodeBuilder::build_scene_sequencer(Scene *scene) | ||||
| SEQ_END; | SEQ_END; | ||||
| } | } | ||||
| 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); | add_operation_node(&scene->id, NodeType::AUDIO, OperationCode::SOUND_EVAL); | ||||
| Scene *scene_cow = get_cow_datablock(scene); | |||||
| add_operation_node(&scene->id, | |||||
| NodeType::AUDIO, | |||||
| OperationCode::AUDIO_VOLUME, | |||||
| function_bind(BKE_scene_update_tag_audio_volume, _1, scene_cow)); | |||||
| } | } | ||||
| void DepsgraphNodeBuilder::build_scene_speakers(Scene * /*scene*/, ViewLayer *view_layer) | void DepsgraphNodeBuilder::build_scene_speakers(Scene * /*scene*/, ViewLayer *view_layer) | ||||
| { | { | ||||
| LISTBASE_FOREACH (Base *, base, &view_layer->object_bases) { | LISTBASE_FOREACH (Base *, base, &view_layer->object_bases) { | ||||
| Object *object = base->object; | Object *object = base->object; | ||||
| if (object->type != OB_SPEAKER || !need_pull_base_into_graph(base)) { | if (object->type != OB_SPEAKER || !need_pull_base_into_graph(base)) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||