Code cleanup: use special type instead of node names.
This commit is contained in:
@@ -506,7 +506,7 @@ void SVMCompiler::generate_multi_closure(ShaderNode *root_node,
|
||||
|
||||
state->closure_done.insert(node);
|
||||
|
||||
if(node->name == ustring("mix_closure") || node->name == ustring("add_closure")) {
|
||||
if(node->special_type == SHADER_SPECIAL_TYPE_COMBINE_CLOSURE) {
|
||||
/* weighting is already taken care of in ShaderGraph::transform_multi_closure */
|
||||
ShaderInput *cl1in = node->input("Closure1");
|
||||
ShaderInput *cl2in = node->input("Closure2");
|
||||
|
Reference in New Issue
Block a user