diff options
-rw-r--r-- | intern/cycles/render/nodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index e661b0b176e..cece0c37f59 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -4478,7 +4478,7 @@ void OSLScriptNode::compile(SVMCompiler& /*compiler*/) void OSLScriptNode::compile(OSLCompiler& compiler) { -#if OSL_LIBRARY_VERSION_CODE < 10701 +#if defined(WITH_OSL) && (OSL_LIBRARY_VERSION_CODE < 10701) /* XXX fix for #36790: * point and normal parameters are reflected as generic SOCK_VECTOR sockets * on the node. Socket fixed input values need to be copied explicitly here for |