[Bf-blender-cvs] [eeed28f] master: Fix T46818, crash with Glossy node on Windows.

Thomas Dinges noreply at git.blender.org
Thu Nov 19 08:44:20 CET 2015


Commit: eeed28fefc4b8fa31b542f03afd88da93a4ff230
Author: Thomas Dinges
Date:   Thu Nov 19 08:43:43 2015 +0100
Branches: master
https://developer.blender.org/rBeeed28fefc4b8fa31b542f03afd88da93a4ff230

Fix T46818, crash with Glossy node on Windows.

===================================================================

M	intern/cycles/render/graph.cpp

===================================================================

diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp
index 6a9b724..7496400 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;
 	}




More information about the Bf-blender-cvs mailing list