Cycles: Fix crash with Environment Texture and OSL

In the OSL node compilation code for the Environment Texture, is_linear was used as a socket.
However, there was no socket for it, which caused Blender to crash.
Adding a socket doesn't really make sense since it's an internal value and not a parameter
of the node, so it now just uses the variable directly.
This commit is contained in:
Lukas Stockner 2016-06-22 16:10:10 +02:00
parent b204bdad47
commit 73cfbb0ab9
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ void EnvironmentTextureNode::compile(OSLCompiler& compiler)
compiler.parameter("color_space", "sRGB");
compiler.parameter(this, "interpolation");
compiler.parameter(this, "is_float");
compiler.parameter("is_float", is_float);
compiler.parameter("use_alpha", !alpha_out->links.empty());
compiler.add(this, "node_environment_texture");
}