[Bf-blender-cvs] [a9598b7a6a7] temp_cryptomatte: Cycles: fixed writing of transparent Cryptomattes in non-branched path tracing mode

Stefan Werner noreply at git.blender.org
Fri Nov 3 21:09:44 CET 2017


Commit: a9598b7a6a73327d392ec56c37c0304ac9009ada
Author: Stefan Werner
Date:   Mon Apr 10 17:36:13 2017 +0200
Branches: temp_cryptomatte
https://developer.blender.org/rBa9598b7a6a73327d392ec56c37c0304ac9009ada

Cycles: fixed writing of transparent Cryptomattes in non-branched path tracing mode

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

M	intern/cycles/kernel/kernel_path_surface.h

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

diff --git a/intern/cycles/kernel/kernel_path_surface.h b/intern/cycles/kernel/kernel_path_surface.h
index 0c7d1b76729..96a99205749 100644
--- a/intern/cycles/kernel/kernel_path_surface.h
+++ b/intern/cycles/kernel/kernel_path_surface.h
@@ -306,8 +306,8 @@ ccl_device bool kernel_path_surface_bounce(KernelGlobals *kg,
 			state->ray_t = 0.0f;
 #endif
 			state->min_ray_pdf = fminf(bsdf_pdf, state->min_ray_pdf);
+			state->matte_weight = 0.0f;
 		}
-		state->matte_weight = 0.0f;
 		
 		/* update path state */
 		path_state_next(kg, state, label);



More information about the Bf-blender-cvs mailing list