Differential D14626 Diff 50431 source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | void DepsgraphRelationBuilder::build_view_layer(Scene *scene, | ||||
| /* Setup currently building context. */ | /* Setup currently building context. */ | ||||
| scene_ = scene; | scene_ = scene; | ||||
| /* Scene objects. */ | /* Scene objects. */ | ||||
| /* NOTE: Nodes builder requires us to pass CoW base because it's being | /* NOTE: Nodes builder requires us to pass CoW base because it's being | ||||
| * passed to the evaluation functions. During relations builder we only | * passed to the evaluation functions. During relations builder we only | ||||
| * do nullptr-pointer check of the base, so it's fine to pass original one. */ | * do nullptr-pointer check of the base, so it's fine to pass original one. */ | ||||
| LISTBASE_FOREACH (Base *, base, &view_layer->object_bases) { | LISTBASE_FOREACH (Base *, base, &view_layer->object_bases) { | ||||
| if (need_pull_base_into_graph(base)) { | if (need_pull_base_into_graph(base)) { | ||||
| build_object(base->object); | build_object_from_view_layer_base(base->object); | ||||
| } | } | ||||
| } | } | ||||
| build_layer_collections(&view_layer->layer_collections); | build_layer_collections(&view_layer->layer_collections); | ||||
| if (scene->camera != nullptr) { | if (scene->camera != nullptr) { | ||||
| build_object(scene->camera); | build_object(scene->camera); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||