diff options
Diffstat (limited to 'intern/cycles')
-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 { |