Depsgraph: Remove workaround of parameters animation in lamp

This commit is contained in:
Sergey Sharybin 2017-12-05 16:43:27 +01:00
parent 8acca0e9e1
commit 630ed82ff2
1 changed files with 2 additions and 10 deletions

View File

@ -1648,21 +1648,13 @@ void DepsgraphRelationBuilder::build_lamp(Object *object)
return;
}
lamp_id->tag |= LIB_TAG_DOIT;
ComponentKey parameters_key(lamp_id, DEG_NODE_TYPE_PARAMETERS);
if (needs_animdata_node(lamp_id)) {
ComponentKey animation_key(lamp_id, DEG_NODE_TYPE_ANIMATION);
add_relation(animation_key, parameters_key, "Lamp Parameters");
}
/* lamp's nodetree */
if (la->nodetree) {
if (la->nodetree != NULL) {
build_nodetree(la->nodetree);
ComponentKey parameters_key(lamp_id, DEG_NODE_TYPE_PARAMETERS);
ComponentKey nodetree_key(&la->nodetree->id, DEG_NODE_TYPE_PARAMETERS);
add_relation(nodetree_key, parameters_key, "NTree->Lamp Parameters");
}
/* textures */
build_texture_stack(la->mtex);
}