diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-22 19:01:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-22 19:30:36 +0300 |
commit | 8e6f7659646ac42961eee43b68567613347d9434 (patch) | |
tree | 0348101f502e083143b2fa3826aa6ae38ad8a3d3 /intern/cycles/kernel/bvh/bvh.h | |
parent | d7cecc2ba3f6ee9c907af456253dcf3417157644 (diff) |
Fix T62844: Cycles crash with bevel and degenerate geometry.
Diffstat (limited to 'intern/cycles/kernel/bvh/bvh.h')
-rw-r--r-- | intern/cycles/kernel/bvh/bvh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h index d123c6dc7c8..e5f807833f3 100644 --- a/intern/cycles/kernel/bvh/bvh.h +++ b/intern/cycles/kernel/bvh/bvh.h @@ -253,6 +253,7 @@ ccl_device_intersect bool scene_intersect_local(KernelGlobals *kg, PROFILING_INIT(kg, PROFILING_INTERSECT_LOCAL); if(!scene_intersect_valid(&ray)) { + local_isect->num_hits = 0; return false; } #ifdef __EMBREE__ |