[Bf-blender-cvs] [6e84b3c] testbuild: Fix T41267: Wrong light distribution with when having objects with motion blur

Sergey Sharybin noreply at git.blender.org
Fri Aug 22 15:13:38 CEST 2014


Commit: 6e84b3c798d1d05ec40bfaa216be57559a1f20b5
Author: Sergey Sharybin
Date:   Thu Aug 21 17:56:25 2014 +0600
Branches: testbuild
https://developer.blender.org/rB6e84b3c798d1d05ec40bfaa216be57559a1f20b5

Fix T41267: Wrong light distribution with when having objects with motion blur

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

M	intern/cycles/render/light.cpp

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

diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp
index 9a0a7ea..94ab82a 100644
--- a/intern/cycles/render/light.cpp
+++ b/intern/cycles/render/light.cpp
@@ -206,8 +206,10 @@ void LightManager::device_update_distribution(Device *device, DeviceScene *dscen
 		}
 
 		/* skip motion blurred deforming meshes, not supported yet */
-		if(mesh->has_motion_blur())
+		if(mesh->has_motion_blur()) {
+			j++;
 			continue;
+		}
 
 		/* skip if we have no emission shaders */
 		foreach(uint sindex, mesh->used_shaders) {




More information about the Bf-blender-cvs mailing list