WIP: Closures and deferred evaluation for geometry nodes #107842

Draft
Lukas Tönne wants to merge 35 commits from LukasTonne/blender:geometry-nodes-closures into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 31a2afb11f - Show all commits

View File

@ -1832,9 +1832,8 @@ void DepsgraphNodeBuilder::build_nodetree(bNodeTree *ntree)
else if (id_type == ID_VF) {
build_vfont((VFont *)id);
}
else if (ELEM(bnode->type, NODE_GROUP, NODE_CUSTOM_GROUP)) {
bNodeTree *group_ntree = (bNodeTree *)id;
build_nodetree(group_ntree);
else if (id_type == ID_NT) {
build_nodetree((bNodeTree *)id);
}
else {
BLI_assert_msg(0, "Unknown ID type used for node");

View File

@ -2730,7 +2730,7 @@ void DepsgraphRelationBuilder::build_nodetree(bNodeTree *ntree)
ComponentKey vfont_key(id, NodeType::GENERIC_DATABLOCK);
add_relation(vfont_key, ntree_output_key, "VFont -> Node");
}
else if (ELEM(bnode->type, NODE_GROUP, NODE_CUSTOM_GROUP)) {
else if (id_type == ID_NT) {
bNodeTree *group_ntree = (bNodeTree *)id;
build_nodetree(group_ntree);
ComponentKey group_output_key(&group_ntree->id, NodeType::NTREE_OUTPUT);