[Bf-blender-cvs] [0b5fda5] master: Condition was inverted in the previous transparent shadows commit

Sergey Sharybin noreply at git.blender.org
Mon Jun 30 13:00:56 CEST 2014


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 */




More information about the Bf-blender-cvs mailing list