diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-14 01:40:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-14 01:40:25 +0300 |
commit | f070bdd7c9c4991f355431a44fdc2d85d4338cd0 (patch) | |
tree | 86a71e845c3172201d0e656806583c25eab3b068 | |
parent | 2ff7494e6d51116f8a408ed8b3d559aa9d9db291 (diff) |
Fix T63802: textured lights not working with OSL
-rw-r--r-- | intern/cycles/kernel/kernel_shader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_shader.h b/intern/cycles/kernel/kernel_shader.h index 351b623addb..c80124d3eb2 100644 --- a/intern/cycles/kernel/kernel_shader.h +++ b/intern/cycles/kernel/kernel_shader.h @@ -1092,7 +1092,7 @@ ccl_device void shader_eval_surface(KernelGlobals *kg, #ifdef __OSL__ if (kg->osl) { - if (sd->object == OBJECT_NONE) { + if (sd->object == OBJECT_NONE && sd->lamp == LAMP_NONE) { OSLShader::eval_background(kg, sd, state, path_flag); } else { |