forked from bartvdbraak/blender
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.
This commit is contained in:
parent
401eaa448b
commit
e969bb207d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user