Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 1,677 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(world)) { | if (built_map_.checkIsBuiltAndTag(world)) { | ||||
| return; | return; | ||||
| } | } | ||||
| build_idproperties(world->id.properties); | build_idproperties(world->id.properties); | ||||
| /* animation */ | /* animation */ | ||||
| build_animdata(&world->id); | build_animdata(&world->id); | ||||
| build_parameters(&world->id); | build_parameters(&world->id); | ||||
| /* Animated / driven parameters (without nodetree). */ | |||||
| OperationKey world_key(&world->id, NodeType::SHADING, OperationCode::WORLD_UPDATE); | |||||
| ComponentKey parameters_key(&world->id, NodeType::PARAMETERS); | |||||
| add_relation(parameters_key, world_key, "World's parameters"); | |||||
| /* world's nodetree */ | /* world's nodetree */ | ||||
| if (world->nodetree != nullptr) { | if (world->nodetree != nullptr) { | ||||
| build_nodetree(world->nodetree); | build_nodetree(world->nodetree); | ||||
| OperationKey ntree_key( | OperationKey ntree_key( | ||||
| &world->nodetree->id, NodeType::SHADING, OperationCode::MATERIAL_UPDATE); | &world->nodetree->id, NodeType::SHADING, OperationCode::MATERIAL_UPDATE); | ||||
| OperationKey world_key(&world->id, NodeType::SHADING, OperationCode::WORLD_UPDATE); | |||||
| add_relation(ntree_key, world_key, "World's NTree"); | add_relation(ntree_key, world_key, "World's NTree"); | ||||
| build_nested_nodetree(&world->id, world->nodetree); | build_nested_nodetree(&world->id, world->nodetree); | ||||
| } | } | ||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_rigidbody(Scene *scene) | void DepsgraphRelationBuilder::build_rigidbody(Scene *scene) | ||||
| { | { | ||||
| RigidBodyWorld *rbw = scene->rigidbody_world; | RigidBodyWorld *rbw = scene->rigidbody_world; | ||||
| ▲ Show 20 Lines • Show All 736 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(material)) { | if (built_map_.checkIsBuiltAndTag(material)) { | ||||
| return; | return; | ||||
| } | } | ||||
| build_idproperties(material->id.properties); | build_idproperties(material->id.properties); | ||||
| /* animation */ | /* animation */ | ||||
| build_animdata(&material->id); | build_animdata(&material->id); | ||||
| build_parameters(&material->id); | build_parameters(&material->id); | ||||
| /* Animated / driven parameters (without nodetree). */ | |||||
| OperationKey material_key(&material->id, NodeType::SHADING, OperationCode::MATERIAL_UPDATE); | |||||
| ComponentKey parameters_key(&material->id, NodeType::PARAMETERS); | |||||
| add_relation(parameters_key, material_key, "Material's paramters"); | |||||
| /* material's nodetree */ | /* material's nodetree */ | ||||
| if (material->nodetree != nullptr) { | if (material->nodetree != nullptr) { | ||||
| build_nodetree(material->nodetree); | build_nodetree(material->nodetree); | ||||
| OperationKey ntree_key( | OperationKey ntree_key( | ||||
| &material->nodetree->id, NodeType::SHADING, OperationCode::MATERIAL_UPDATE); | &material->nodetree->id, NodeType::SHADING, OperationCode::MATERIAL_UPDATE); | ||||
| OperationKey material_key(&material->id, NodeType::SHADING, OperationCode::MATERIAL_UPDATE); | |||||
| add_relation(ntree_key, material_key, "Material's NTree"); | add_relation(ntree_key, material_key, "Material's NTree"); | ||||
| build_nested_nodetree(&material->id, material->nodetree); | build_nested_nodetree(&material->id, material->nodetree); | ||||
| } | } | ||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_materials(Material **materials, int num_materials) | void DepsgraphRelationBuilder::build_materials(Material **materials, int num_materials) | ||||
| { | { | ||||
| for (int i = 0; i < num_materials; i++) { | for (int i = 0; i < num_materials; i++) { | ||||
| ▲ Show 20 Lines • Show All 477 Lines • Show Last 20 Lines | |||||