Fix T62844: Cycles crash with bevel and degenerate geometry.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 22 Mar 2019 16:01:33 +0000 (17:01 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 22 Mar 2019 16:30:36 +0000 (17:30 +0100)
intern/cycles/kernel/bvh/bvh.h

index d123c6d..e5f8078 100644 (file)
@@ -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__