[Bf-blender-cvs] [299fae1] master: Cycles: Fix missing indirect subsurface initialization in the bake code
Sergey Sharybin
noreply at git.blender.org
Sat Nov 28 16:13:13 CET 2015
Commit: 299fae1838b67b627b140e11066e0603169eb49a
Author: Sergey Sharybin
Date: Sat Nov 28 15:36:42 2015 +0500
Branches: master
https://developer.blender.org/rB299fae1838b67b627b140e11066e0603169eb49a
Cycles: Fix missing indirect subsurface initialization in the bake code
===================================================================
M intern/cycles/kernel/kernel_bake.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_bake.h b/intern/cycles/kernel/kernel_bake.h
index e9cf02c..57cbf0b6 100644
--- a/intern/cycles/kernel/kernel_bake.h
+++ b/intern/cycles/kernel/kernel_bake.h
@@ -65,6 +65,7 @@ ccl_device void compute_light_pass(KernelGlobals *kg, ShaderData *sd, PathRadian
if((is_combined || is_sss_sample) && (sd->flag & SD_BSSRDF)) {
/* when mixing BSSRDF and BSDF closures we should skip BSDF lighting if scattering was successful */
SubsurfaceIndirectRays ss_indirect;
+ ss_indirect.num_rays = 0;
if(kernel_path_subsurface_scatter(kg,
sd,
&L_sample,
More information about the Bf-blender-cvs
mailing list