Fix T46818, crash with Glossy node on Windows.

This commit is contained in:
Thomas Dinges 2015-11-19 08:43:43 +01:00
parent 8dea06565f
commit eeed28fefc
Notes: blender-bot 2023-03-24 17:05:22 +01:00
Referenced by issue #46818, Cycles crashes when glossy, glass, and refraction shaders are used
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ ShaderOutput *ShaderNode::add_output(const char *name, ShaderSocketType type)
ShaderInput *ShaderNode::get_input(const char *name)
{
foreach(ShaderInput *input, inputs) {
if(input->name == name)
if(strcmp(input->name, name) == 0)
return input;
}
@ -132,7 +132,7 @@ ShaderInput *ShaderNode::get_input(const char *name)
ShaderOutput *ShaderNode::get_output(const char *name)
{
foreach(ShaderOutput *output, outputs) {
if(output->name == name)
if(strcmp(output->name, name) == 0)
return output;
}