Fix cycles OSL shader loading warnings after recent bugfix.

This commit is contained in:
Brecht Van Lommel 2012-11-27 16:02:12 +00:00
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;