[Bf-blender-cvs] [8a2d09eb9f5] master: Fix T53854: branched path tracing correlation bug with transparency.

Brecht Van Lommel noreply at git.blender.org
Mon Jan 22 14:03:06 CET 2018


Commit: 8a2d09eb9f5a5804ded16900523087a312ffa302
Author: Brecht Van Lommel
Date:   Mon Jan 22 13:47:53 2018 +0100
Branches: master
https://developer.blender.org/rB8a2d09eb9f5a5804ded16900523087a312ffa302

Fix T53854: branched path tracing correlation bug with transparency.

This was broken in d750d18.

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

M	intern/cycles/kernel/kernel_path_branched.h

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

diff --git a/intern/cycles/kernel/kernel_path_branched.h b/intern/cycles/kernel/kernel_path_branched.h
index 9996f52f9a4..63fe7822e2a 100644
--- a/intern/cycles/kernel/kernel_path_branched.h
+++ b/intern/cycles/kernel/kernel_path_branched.h
@@ -552,8 +552,7 @@ ccl_device void kernel_branched_path_integrate(KernelGlobals *kg,
 		}
 
 		/* Update Path State */
-		state.flag |= PATH_RAY_TRANSPARENT;
-		state.transparent_bounce++;
+		path_state_next(kg, &state, LABEL_TRANSPARENT);
 
 		ray.P = ray_offset(sd.P, -sd.Ng);
 		ray.t -= sd.ray_length; /* clipping works through transparent */



More information about the Bf-blender-cvs mailing list