forked from bartvdbraak/blender
Fix cycles OSL shader loading warnings after recent bugfix.
This commit is contained in:
parent
2b080dbc4e
commit
5f8fded639
@ -352,6 +352,9 @@ bool OSLCompiler::node_skip_input(ShaderNode *node, ShaderInput *input)
|
||||
/* exception for output node, only one input is actually used
|
||||
* depending on the current shader type */
|
||||
|
||||
if(!(input->usage & ShaderInput::USE_OSL))
|
||||
return true;
|
||||
|
||||
if(node->name == ustring("output")) {
|
||||
if(strcmp(input->name, "Surface") == 0 && current_type != SHADER_TYPE_SURFACE)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user