Fix T48587, constant fold should only be done for Mix Type.

This commit is contained in:
Thomas Dinges 2016-06-04 21:39:07 +02:00
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
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}