Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-06-21 10:45:40 +0300
committerJeroen Bakker <jeroen@blender.org>2022-06-21 10:45:40 +0300
commit84fc08625431e2cbd1c495eebed11e42cf9b6901 (patch)
tree166debd660dd5056b818e3e61454b5db7033e8ca
parent5d3df1c2964627758451ea68c79ab3f58fff44aa (diff)
Fix T98919: Eevee unlinked aov output nodes don't render.
Eevee rendered an empty image for aov nodes that weren't linked to any other nodes. When connected the result was OK. The root cause was that the AOV nodes were not marked as output node and pruned when not connected to any other nodes. The pruning process is there to reduce the complexity of the GLSL and improve compilation time and execution time.
-rw-r--r--source/blender/nodes/shader/node_shader_tree.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/node_shader_tree.cc b/source/blender/nodes/shader/node_shader_tree.cc
index f107ec73c60..24558e4b32b 100644
--- a/source/blender/nodes/shader/node_shader_tree.cc
+++ b/source/blender/nodes/shader/node_shader_tree.cc
@@ -1007,6 +1007,7 @@ static void ntree_shader_pruned_unused(bNodeTree *ntree, bNode *output_node)
LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
if (node->type == SH_NODE_OUTPUT_AOV) {
+ node->tmp_flag = 1;
nodeChainIterBackwards(ntree, node, ntree_branch_node_tag, nullptr, 0);
}
}