[Bf-blender-cvs] [e245a57] master: Fix T45227: Light optimization commit broke world MIS

Sergey Sharybin noreply at git.blender.org
Sun Jun 28 20:48:39 CEST 2015


Commit: e245a5764048d371285120e6b0347f762a61feb0
Author: Sergey Sharybin
Date:   Sun Jun 28 20:47:35 2015 +0200
Branches: master
https://developer.blender.org/rBe245a5764048d371285120e6b0347f762a61feb0

Fix T45227: Light optimization commit broke world MIS

===================================================================

M	intern/cycles/render/light.cpp

===================================================================

diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp
index e1b81db..4e96261 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;
 }




More information about the Bf-blender-cvs mailing list