diff options
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/mesh.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index 78b9ec03273..91c3a772537 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -2315,6 +2315,9 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene) dscene->attributes_float3.free(); dscene->attributes_uchar4.free(); + /* Signal for shaders like displacement not to do ray tracing. */ + dscene->data.bvh.bvh_layout = BVH_LAYOUT_NONE; + #ifdef WITH_OSL OSLGlobals *og = (OSLGlobals *)device->osl_memory(); |