Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 2,538 Lines • ▼ Show 20 Lines | SEQ_BEGIN (scene->ed, seq) { | ||||
| /* TODO(sergey): Movie clip, camera, mask. */ | /* TODO(sergey): Movie clip, camera, mask. */ | ||||
| } | } | ||||
| 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_volume_key(&scene->id, NodeType::AUDIO, OperationCode::AUDIO_VOLUME); | |||||
| OperationKey scene_sound_eval_key(&scene->id, NodeType::AUDIO, OperationCode::SOUND_EVAL); | |||||
| add_relation(scene_audio_volume_key, scene_sound_eval_key, "Audio Volume -> Sound"); | |||||
| if (scene->audio.flag & AUDIO_VOLUME_ANIMATED) { | |||||
| ComponentKey scene_anim_key(&scene->id, NodeType::ANIMATION); | |||||
| add_relation(scene_anim_key, scene_audio_volume_key, "Animation -> Audio Volume"); | |||||
| } | |||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_scene_speakers(Scene * /*scene*/, ViewLayer *view_layer) | void DepsgraphRelationBuilder::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 315 Lines • Show Last 20 Lines | |||||