From 2e5e1e20282f127a9044e08bc7c2b08e8596a6ee Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 21 Aug 2014 17:56:25 +0600 Subject: [PATCH] Fix T41267: Wrong light distribution with when having objects with motion blur --- intern/cycles/render/light.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index 9a0a7ead696..94ab82a600e 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) {