Fix T53854: branched path tracing correlation bug with transparency in split kernel.

This commit is contained in:
Brecht Van Lommel
2018-01-23 10:44:20 +01:00
parent 9466f8f531
commit 2838cf0dfe

View File

@@ -70,8 +70,7 @@ ccl_device void kernel_split_branched_indirect_light_end(KernelGlobals *kg, int
}
else {
/* 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 */