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
path: root/intern
diff options
context:
space:
mode:
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/kernel_light.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h
index f288ca3051a..42a834d2ce3 100644
--- a/intern/cycles/kernel/kernel_light.h
+++ b/intern/cycles/kernel/kernel_light.h
@@ -135,6 +135,8 @@ ccl_device_inline bool lamp_light_sample(
ls->pdf = invarea;
}
else {
+ inplane = ls->P;
+
float3 sample_axisu = axisu;
float3 sample_axisv = axisv;
@@ -145,7 +147,6 @@ ccl_device_inline bool lamp_light_sample(
}
}
- inplane = ls->P;
ls->pdf = rect_light_sample(P, &ls->P, sample_axisu, sample_axisv, randu, randv, true);
inplane = ls->P - inplane;
}