Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 2,649 Lines • ▼ Show 20 Lines | void DepsgraphRelationBuilder::build_scene_sequencer(Scene *scene) | ||||
| SEQ_END; | SEQ_END; | ||||
| if (has_audio_strips) { | if (has_audio_strips) { | ||||
| add_relation(sequencer_key, scene_audio_key, "Sequencer -> Audio"); | add_relation(sequencer_key, scene_audio_key, "Sequencer -> Audio"); | ||||
| } | } | ||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_scene_audio(Scene *scene) | void DepsgraphRelationBuilder::build_scene_audio(Scene *scene) | ||||
| { | { | ||||
| OperationKey scene_audio_entry_key(&scene->id, NodeType::AUDIO, OperationCode::AUDIO_ENTRY); | |||||
| OperationKey scene_audio_volume_key(&scene->id, NodeType::AUDIO, OperationCode::AUDIO_VOLUME); | OperationKey scene_audio_volume_key(&scene->id, NodeType::AUDIO, OperationCode::AUDIO_VOLUME); | ||||
| OperationKey scene_sound_eval_key(&scene->id, NodeType::AUDIO, OperationCode::SOUND_EVAL); | OperationKey scene_sound_eval_key(&scene->id, NodeType::AUDIO, OperationCode::SOUND_EVAL); | ||||
| add_relation(scene_audio_entry_key, scene_audio_volume_key, "Audio Entry -> Volume"); | |||||
| add_relation(scene_audio_volume_key, scene_sound_eval_key, "Audio Volume -> Sound"); | add_relation(scene_audio_volume_key, scene_sound_eval_key, "Audio Volume -> Sound"); | ||||
| if (scene->audio.flag & AUDIO_VOLUME_ANIMATED) { | if (scene->audio.flag & AUDIO_VOLUME_ANIMATED) { | ||||
| ComponentKey scene_anim_key(&scene->id, NodeType::ANIMATION); | ComponentKey scene_anim_key(&scene->id, NodeType::ANIMATION); | ||||
| add_relation(scene_anim_key, scene_audio_volume_key, "Animation -> Audio Volume"); | add_relation(scene_anim_key, scene_audio_volume_key, "Animation -> Audio Volume"); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines | |||||