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-22 15:47:53 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-22 16:02:58 +0300
commit8a2d09eb9f5a5804ded16900523087a312ffa302 (patch)
treeb97a6aba43a65fe3348f66e82e4cfa9bdaf6d623 /intern/cycles/kernel/kernel_path_branched.h
parentb06bd20a6bde49675b92a59d5439b1f3684d08b3 (diff)
Fix T53854: branched path tracing correlation bug with transparency.
This was broken in d750d18.
Diffstat (limited to 'intern/cycles/kernel/kernel_path_branched.h')
-rw-r--r--intern/cycles/kernel/kernel_path_branched.h3
1 files changed, 1 insertions, 2 deletions
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 */