Fix #115226: Shader Nodes: Don't execute the same node twice

Allow to share nodes between the main shader and multiple AOVs,
since they are executed in the same function.
This commit is contained in:
Miguel Pozo 2023-12-22 17:32:25 +01:00
parent 0f2e534674
commit a90fdd5246
1 changed files with 2 additions and 1 deletions

View File

@ -329,7 +329,8 @@ void ntreeExecGPUNodes(bNodeTreeExec *exec, GPUMaterial *mat, bNode *output_node
}
}
else {
do_it = true;
do_it = node->runtime->need_exec;
node->runtime->need_exec = 0;
}
if (do_it) {