Fix T48587, constant fold should only be done for Mix Type.
This commit is contained in:
parent
1d8637ec69
commit
234801c8dc
Notes:
blender-bot
2023-02-14 07:50:23 +01:00
Referenced by issue #48587, Color Mix "Add" mode is broken in Cycles
|
@ -3383,7 +3383,7 @@ void MixNode::compile(OSLCompiler& compiler)
|
|||
|
||||
bool MixNode::constant_fold(ShaderGraph *graph, ShaderOutput *, ShaderInput *optimized)
|
||||
{
|
||||
if(type != ustring("Mix")) {
|
||||
if(type != NODE_MIX_BLEND) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue