Fix T46818, crash with Glossy node on Windows.
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue