Commit: 85f48216ed04c51bdc931153517fdc228507e78f
Author: Sergey Sharybin
Date:   Mon Sep 19 14:59:24 2016 +0200
Branches: master
https://developer.blender.org/rB85f48216ed04c51bdc931153517fdc228507e78f

Cycles: Cleanup, always use parenthesis

Makes it simpler to compare different traversal algorithms.

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

M       intern/cycles/kernel/bvh/bvh_shadow_all.h
M       intern/cycles/kernel/bvh/qbvh_shadow_all.h

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

diff --git a/intern/cycles/kernel/bvh/bvh_shadow_all.h 
b/intern/cycles/kernel/bvh/bvh_shadow_all.h
index f9da2a3..0c0a877 100644
--- a/intern/cycles/kernel/bvh/bvh_shadow_all.h
+++ b/intern/cycles/kernel/bvh/bvh_shadow_all.h
@@ -355,8 +355,9 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                triangle_intersect_precalc(dir, &isect_precalc);
 
                                /* scale isect->t to adjust for instancing */
-                               for(int i = 0; i < num_hits_in_instance; i++)
+                               for(int i = 0; i < num_hits_in_instance; i++) {
                                        (isect_array-i-1)->t *= t_fac;
+                               }
                        }
                        else {
                                float ignore_t = FLT_MAX;
diff --git a/intern/cycles/kernel/bvh/qbvh_shadow_all.h 
b/intern/cycles/kernel/bvh/qbvh_shadow_all.h
index 5043965..73dd18a 100644
--- a/intern/cycles/kernel/bvh/qbvh_shadow_all.h
+++ b/intern/cycles/kernel/bvh/qbvh_shadow_all.h
@@ -437,8 +437,9 @@ ccl_device bool BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals 
*kg,
 #  endif
 
                                /* scale isect->t to adjust for instancing */
-                               for(int i = 0; i < num_hits_in_instance; i++)
+                               for(int i = 0; i < num_hits_in_instance; i++) {
                                        (isect_array-i-1)->t *= t_fac;
+                               }
                        }
                        else {
                                float ignore_t = FLT_MAX;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to