[Bf-blender-cvs] [2e5e1e2] master: Fix T41267: Wrong light distribution with when having objects with motion blur

Sergey Sharybin noreply at git.blender.org
Thu Aug 21 13:57:52 CEST 2014


Commit: 2e5e1e20282f127a9044e08bc7c2b08e8596a6ee
Author: Sergey Sharybin
Date:   Thu Aug 21 17:56:25 2014 +0600
Branches: master
https://developer.blender.org/rB2e5e1e20282f127a9044e08bc7c2b08e8596a6ee

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