Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-23 12:44:20 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-23 13:11:48 +0300
commit2838cf0dfe6c8b435cc54881bf548e2bbb0096ae (patch)
tree47df4e306afaa4a369310a2e0031391364b81578 /intern/cycles/kernel/split
parent9466f8f53150659c8aed6cced7f66b11a794a4a4 (diff)
Fix T53854: branched path tracing correlation bug with transparency in split kernel.
Diffstat (limited to 'intern/cycles/kernel/split')
-rw-r--r--intern/cycles/kernel/split/kernel_next_iteration_setup.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/kernel/split/kernel_next_iteration_setup.h b/intern/cycles/kernel/split/kernel_next_iteration_setup.h
index 75a0af7567b..81024f0cf99 100644
--- a/intern/cycles/kernel/split/kernel_next_iteration_setup.h
+++ b/intern/cycles/kernel/split/kernel_next_iteration_setup.h
@@ -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 */