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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-02-21 01:15:21 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-02-21 01:20:07 +0300
commitccd291aafbe5f0478963dc6e7f6b957a08eea511 (patch)
treefb0dfcf87fd379e6bcfbeb53304d0172e6ba29e5 /intern
parent848f589fdf36c43ea537f93a8213b5ea362949a3 (diff)
Cycles: Fix uninitialized number of hits
Was happening when looking for all intersections for transparent shadow rays in the case the ray is degenerate. Still quesitonable whether we should consider this a transparent or opaque configuraiton. Ideally, we should prevent such rays from happening, but that is another vector of debugging.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/bvh/bvh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h
index 284b1e9208c..d123c6dc7c8 100644
--- a/intern/cycles/kernel/bvh/bvh.h
+++ b/intern/cycles/kernel/bvh/bvh.h
@@ -334,6 +334,7 @@ ccl_device_intersect bool scene_intersect_shadow_all(KernelGlobals *kg,
PROFILING_INIT(kg, PROFILING_INTERSECT_SHADOW_ALL);
if(!scene_intersect_valid(ray)) {
+ *num_hits = 0;
return false;
}
# ifdef __EMBREE__