Depsgraph: Add missing handlers of node IDs
Worst thing was that point density did not pull object into dependency graph, which could lead to wrong render results.
This commit is contained in:
@@ -970,6 +970,14 @@ void DepsgraphNodeBuilder::build_nodetree(bNodeTree *ntree)
|
||||
else if (id_type == ID_IM) {
|
||||
build_image((Image *)id);
|
||||
}
|
||||
else if (id_type == ID_OB) {
|
||||
build_object(NULL, (Object *)id);
|
||||
}
|
||||
else if (id_type == ID_SCE) {
|
||||
/* Scenes are used by compositor trees, and handled by render
|
||||
* pipeline. No need to build dependencies for them here.
|
||||
*/
|
||||
}
|
||||
else if (bnode->type == NODE_GROUP) {
|
||||
bNodeTree *group_ntree = (bNodeTree *)id;
|
||||
if ((group_ntree->id.tag & LIB_TAG_DOIT) == 0) {
|
||||
|
||||
@@ -1721,6 +1721,14 @@ void DepsgraphRelationBuilder::build_nodetree(bNodeTree *ntree)
|
||||
else if (id_type == ID_IM) {
|
||||
/* nothing for now. */
|
||||
}
|
||||
else if (id_type == ID_OB) {
|
||||
build_object((Object *)id);
|
||||
}
|
||||
else if (id_type == ID_SCE) {
|
||||
/* Scenes are used by compositor trees, and handled by render
|
||||
* pipeline. No need to build dependencies for them here.
|
||||
*/
|
||||
}
|
||||
else if (bnode->type == NODE_GROUP) {
|
||||
bNodeTree *group_ntree = (bNodeTree *)id;
|
||||
if ((group_ntree->id.tag & LIB_TAG_DOIT) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user