Merge branch 'blender-v2.83-release'
This commit is contained in:
@@ -300,7 +300,9 @@ ccl_device_intersect bool scene_intersect_local(KernelGlobals *kg,
|
||||
// Is set to zero on miss or if ray is aborted, so can be used as return value
|
||||
uint p5 = max_hits;
|
||||
|
||||
local_isect->num_hits = 0; // Initialize hit count to zero
|
||||
if (local_isect) {
|
||||
local_isect->num_hits = 0; // Initialize hit count to zero
|
||||
}
|
||||
optixTrace(scene_intersect_valid(ray) ? kernel_data.bvh.scene : 0,
|
||||
ray->P,
|
||||
ray->D,
|
||||
@@ -323,7 +325,9 @@ ccl_device_intersect bool scene_intersect_local(KernelGlobals *kg,
|
||||
return p5;
|
||||
# else /* __KERNEL_OPTIX__ */
|
||||
if (!scene_intersect_valid(ray)) {
|
||||
local_isect->num_hits = 0;
|
||||
if (local_isect) {
|
||||
local_isect->num_hits = 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -18,6 +18,7 @@
|
||||
#define __UTIL_GUARDED_ALLOCATOR_H__
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
|
||||
#ifdef WITH_BLENDER_GUARDEDALLOC
|
||||
|
Reference in New Issue
Block a user