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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-09-19 15:59:24 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-09-19 16:18:27 +0300
commit85f48216ed04c51bdc931153517fdc228507e78f (patch)
tree81c74c96c6ea527ab705762126a549c0c8f42843 /intern/cycles/kernel/bvh
parentcc9d0eff818db57362d6de3769999c86cd4c99ef (diff)
Cycles: Cleanup, always use parenthesis
Makes it simpler to compare different traversal algorithms.
Diffstat (limited to 'intern/cycles/kernel/bvh')
-rw-r--r--intern/cycles/kernel/bvh/bvh_shadow_all.h3
-rw-r--r--intern/cycles/kernel/bvh/qbvh_shadow_all.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/kernel/bvh/bvh_shadow_all.h b/intern/cycles/kernel/bvh/bvh_shadow_all.h
index f9da2a3caaa..0c0a877cdff 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 5043965c979..73dd18ad2bd 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;