Merge branch 'blender2.7'
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 20 Feb 2019 22:20:43 +0000 (23:20 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 20 Feb 2019 22:20:43 +0000 (23:20 +0100)
intern/cycles/kernel/bvh/bvh.h

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