[Bf-blender-cvs] [7ec9a02089c] blender-v3.2-release: Fix T98919: Eevee unlinked aov output nodes don't render.

Jeroen Bakker noreply at git.blender.org
Wed Jun 22 13:03:02 CEST 2022


Commit: 7ec9a02089c116cfb0353daed4caeecb5ad4948c
Author: Jeroen Bakker
Date:   Tue Jun 21 09:45:40 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rB7ec9a02089c116cfb0353daed4caeecb5ad4948c

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.

===================================================================

M	source/blender/nodes/shader/node_shader_tree.cc

===================================================================

diff --git a/source/blender/nodes/shader/node_shader_tree.cc b/source/blender/nodes/shader/node_shader_tree.cc
index ec97637ccd2..3cbd3f0d776 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);
     }
   }



More information about the Bf-blender-cvs mailing list