From e969bb207d125e4641ea91a7b8d3e9a6fe131deb Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 11 Jun 2013 08:07:05 +0000 Subject: [PATCH] Fix compilation error caused by recent wavelength node commit Apparently, it's bad idea to rely on compiler to cast NULL which is (void*)0 to int -- and in fact if i was a compiler would also generate an error. Further, couldn't see why we need to pass NULL or 0 th add_node, argument value is defautl to 0 already. --- intern/cycles/render/nodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index bec45e23f7a..74033d5c2fa 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -2969,7 +2969,7 @@ void WavelengthNode::compile(SVMCompiler& compiler) compiler.stack_assign(wavelength_in); compiler.stack_assign(color_out); - compiler.add_node(NODE_WAVELENGTH, wavelength_in->stack_offset, color_out->stack_offset, NULL); + compiler.add_node(NODE_WAVELENGTH, wavelength_in->stack_offset, color_out->stack_offset); } void WavelengthNode::compile(OSLCompiler& compiler)