Fix T45227: Light optimization commit broke world MIS
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 28 Jun 2015 18:47:35 +0000 (20:47 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 28 Jun 2015 18:47:35 +0000 (20:47 +0200)
intern/cycles/render/light.cpp

index e1b81db93abf846b0283ddb31655ed750ff1b649..4e962616263f37754ba00ec18fd0a575f962b522 100644 (file)
@@ -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;
 }