Cycles: Fix crash with Environment Texture and OSL
authorLukas Stockner <lukas.stockner@freenet.de>
Wed, 22 Jun 2016 14:10:10 +0000 (16:10 +0200)
committerLukas Stockner <lukas.stockner@freenet.de>
Wed, 22 Jun 2016 14:12:40 +0000 (16:12 +0200)
commit73cfbb0ab937d837a40a03765108b3af11606b7c
treeabf85980172f86a53c8ee600b81ecea480a3de01
parentb204bdad47ffbd92b7b6702e2a680da9cbd6489a
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.
intern/cycles/render/nodes.cpp