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-02-03 17:00:55 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-02-03 17:00:55 +0300
commit3aa74828ab627723e6c98163bf6344ef1f009bcf (patch)
tree7dbb827dbb794d8f71ecd4c8047a8d0fff272f6c /intern/cycles/kernel/kernel_light.h
parent87cbcd697b778b8c5500634a5193bdf67700b3a6 (diff)
Cycles: Cleanup, indentation and braces
Diffstat (limited to 'intern/cycles/kernel/kernel_light.h')
-rw-r--r--intern/cycles/kernel/kernel_light.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h
index ef098aeb050..1cd701dbf4c 100644
--- a/intern/cycles/kernel/kernel_light.h
+++ b/intern/cycles/kernel/kernel_light.h
@@ -693,8 +693,10 @@ bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, float t, L
return false;
if(!ray_aligned_disk_intersect(P, D, t,
- lightP, radius, &ls->P, &ls->t))
+ lightP, radius, &ls->P, &ls->t))
+ {
return false;
+ }
ls->Ng = -D;
ls->D = D;
@@ -736,8 +738,10 @@ bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, float t, L
float3 light_P = make_float3(data0.y, data0.z, data0.w);
if(!ray_quad_intersect(P, D, t,
- light_P, axisu, axisv, &ls->P, &ls->t))
+ light_P, axisu, axisv, &ls->P, &ls->t))
+ {
return false;
+ }
ls->D = D;
ls->Ng = Ng;