Commit: 0b5fda56781027fbfbc0bc9cad4f99663ce034d5
Author: Sergey Sharybin
Date:   Mon Jun 30 16:54:52 2014 +0600
https://developer.blender.org/rB0b5fda56781027fbfbc0bc9cad4f99663ce034d5

Condition was inverted in the previous transparent shadows commit

Handbook example what happens when you've got loads of patches
and not double-check stuff before committing.

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

M       intern/cycles/kernel/kernel_shadow.h

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

diff --git a/intern/cycles/kernel/kernel_shadow.h 
b/intern/cycles/kernel/kernel_shadow.h
index 3d76f43..439e8bb 100644
--- a/intern/cycles/kernel/kernel_shadow.h
+++ b/intern/cycles/kernel/kernel_shadow.h
@@ -66,7 +66,7 @@ ccl_device_inline bool shadow_blocked(KernelGlobals *kg, 
PathState *state, Ray *
        if(kernel_data.integrator.transparent_shadows) {
                /* check transparent bounces here, for volume scatter which can 
do
                 * lighting before surface path termination is checked */
-               if(state->transparent_bounce < 
kernel_data.integrator.transparent_max_bounce)
+               if(state->transparent_bounce >= 
kernel_data.integrator.transparent_max_bounce)
                        return true;
 
                /* intersect to find an opaque surface, or record all 
transparent surface hits */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to