Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 2,125 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (bNode *, bnode, &ntree->nodes) { | ||||
| } | } | ||||
| else if (id_type == ID_IM) { | else if (id_type == ID_IM) { | ||||
| build_image((Image *)bnode->id); | build_image((Image *)bnode->id); | ||||
| } | } | ||||
| else if (id_type == ID_OB) { | else if (id_type == ID_OB) { | ||||
| build_object(NULL, (Object *)id); | build_object(NULL, (Object *)id); | ||||
| } | } | ||||
| else if (id_type == ID_SCE) { | else if (id_type == ID_SCE) { | ||||
| /* Scenes are used by compositor trees, and handled by render | Scene *node_scene = (Scene *)id; | ||||
| * pipeline. No need to build dependencies for them here. */ | build_scene_parameters(node_scene); | ||||
| /* Camera is used by defocus node. | |||||
| * | |||||
| * On the one hand it's annoying to always pull it in, but on another hand it's also annoying | |||||
| * to have hardcoded node-type exception here. */ | |||||
| if (node_scene->camera != NULL) { | |||||
| build_object(NULL, node_scene->camera); | |||||
| } | |||||
| } | } | ||||
| else if (id_type == ID_TXT) { | else if (id_type == ID_TXT) { | ||||
| /* Ignore script nodes. */ | /* Ignore script nodes. */ | ||||
| } | } | ||||
| else if (id_type == ID_MSK) { | else if (id_type == ID_MSK) { | ||||
| build_mask((Mask *)id); | build_mask((Mask *)id); | ||||
| } | } | ||||
| else if (id_type == ID_MC) { | else if (id_type == ID_MC) { | ||||
| ▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
| void DepsgraphRelationBuilder::build_image(Image *image) | void DepsgraphRelationBuilder::build_image(Image *image) | ||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(image)) { | if (built_map_.checkIsBuiltAndTag(image)) { | ||||
| return; | return; | ||||
| } | } | ||||
| build_parameters(&image->id); | build_parameters(&image->id); | ||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_compositor(Scene *scene) | |||||
| { | |||||
| /* For now, just a plain wrapper? */ | |||||
| build_nodetree(scene->nodetree); | |||||
| } | |||||
| void DepsgraphRelationBuilder::build_gpencil(bGPdata *gpd) | void DepsgraphRelationBuilder::build_gpencil(bGPdata *gpd) | ||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(gpd)) { | if (built_map_.checkIsBuiltAndTag(gpd)) { | ||||
| return; | return; | ||||
| } | } | ||||
| /* animation */ | /* animation */ | ||||
| build_animdata(&gpd->id); | build_animdata(&gpd->id); | ||||
| build_parameters(&gpd->id); | build_parameters(&gpd->id); | ||||
| ▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines | |||||