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:
parent
0f2e534674
commit
a90fdd5246
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue