Fix T66412: crash with displacement and AO node in viewport renders
This commit is contained in:
parent
33987caf3e
commit
acf26dee5f
Notes:
blender-bot
2023-02-14 01:59:32 +01:00
Referenced by issue #66412, Cycles displacement crashes blender when Material output displacement is influenced by AO node
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue