diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-28 21:47:35 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-28 21:47:35 +0300 |
commit | e245a5764048d371285120e6b0347f762a61feb0 (patch) | |
tree | 307f3cbc008b9dd0fd1239afc67ae7b1b1faf389 | |
parent | 68478aea016e87e071d550797b36acd32d33bd12 (diff) |
Fix T45227: Light optimization commit broke world MIS
-rw-r--r-- | intern/cycles/render/light.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index e1b81db93ab..4e962616263 100644 --- a/intern/cycles/render/light.cpp +++ b/intern/cycles/render/light.cpp @@ -143,6 +143,9 @@ bool Light::has_contribution(Scene *scene) if(is_portal) { return false; } + if(type == LIGHT_BACKGROUND) { + return true; + } return scene->shaders[shader]->has_surface_emission; } |