diff options
author | Thomas Dinges <blender@dingto.org> | 2015-11-19 10:43:43 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2015-11-19 10:43:43 +0300 |
commit | eeed28fefc4b8fa31b542f03afd88da93a4ff230 (patch) | |
tree | 89e6400ea5775bf2a8f891fccfd7502f6bf13395 /intern | |
parent | 8dea06565f11f706195c89dcfcd7867b887a0ff7 (diff) |
Fix T46818, crash with Glossy node on Windows.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/graph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp index 6a9b7244ced..749640040f5 100644 --- a/intern/cycles/render/graph.cpp +++ b/intern/cycles/render/graph.cpp @@ -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; } |