Fix T41885, muting broken for Blender Internal nodes in rendering.

Nodes don't have muting callbacks any more, so now have to check the
flag to prevent overwriting values on the stack that they share with
inputs.
This commit is contained in:
Lukas Tönne 2014-09-24 14:27:36 +02:00
parent 25ec0d97f9
commit 345b16601c
Notes: blender-bot 2023-02-14 10:04:44 +01:00
Referenced by issue #41885, M - material node bug
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ bool ntreeExecThreadNodes(bNodeTreeExec *exec, bNodeThreadStack *nts, void *call
*/
// if (node->typeinfo->compatibility == NODE_NEW_SHADING)
// return false;
if (node->typeinfo->execfunc)
if (node->typeinfo->execfunc && !(node->flag & NODE_MUTED))
node->typeinfo->execfunc(callerdata, thread, node, &nodeexec->data, nsin, nsout);
}
}