Code refactor: reduce special node types, use generic constant folding.
This commit is contained in:
@@ -365,7 +365,7 @@ uint SVMCompiler::attribute(AttributeStandard std)
|
||||
bool SVMCompiler::node_skip_input(ShaderNode * /*node*/, ShaderInput *input)
|
||||
{
|
||||
/* nasty exception .. */
|
||||
if(current_type == SHADER_TYPE_DISPLACEMENT && input->link && input->link->parent->name == ustring("bump"))
|
||||
if(current_type == SHADER_TYPE_DISPLACEMENT && input->link && input->link->parent->special_type == SHADER_SPECIAL_TYPE_BUMP)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user