[Bf-blender-cvs] [56b1733] compositor-2016: Fix T48587, constant fold should only be done for Mix Type.
Thomas Dinges
noreply at git.blender.org
Wed Jun 8 21:52:59 CEST 2016
Commit: 56b17333a5c5357e9a78b1cbd46f4af82b6e6815
Author: Thomas Dinges
Date: Sat Jun 4 21:39:07 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rB56b17333a5c5357e9a78b1cbd46f4af82b6e6815
Fix T48587, constant fold should only be done for Mix Type.
===================================================================
M intern/cycles/render/nodes.cpp
===================================================================
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 4656b3d..df0fee6 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -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;
}
More information about the Bf-blender-cvs
mailing list