Merge branch 'blender-v4.2-release'
This commit is contained in:
@@ -125,9 +125,7 @@ unique_ptr<Denoiser> Denoiser::create(Device *denoiser_device,
|
||||
DenoiserType Denoiser::automatic_viewport_denoiser_type(const DeviceInfo &path_trace_device_info)
|
||||
{
|
||||
#ifdef WITH_OPENIMAGEDENOISE
|
||||
if (path_trace_device_info.type != DEVICE_CPU &&
|
||||
OIDNDenoiserGPU::is_device_supported(path_trace_device_info))
|
||||
{
|
||||
if (OIDNDenoiserGPU::is_device_supported(path_trace_device_info)) {
|
||||
return DENOISER_OPENIMAGEDENOISE;
|
||||
}
|
||||
#else
|
||||
|
||||
@@ -191,6 +191,10 @@ static void volume_free_data(ID *id)
|
||||
BKE_animdata_free(&volume->id, false);
|
||||
BKE_volume_batch_cache_free(volume);
|
||||
MEM_SAFE_FREE(volume->mat);
|
||||
if (volume->packedfile) {
|
||||
BKE_packedfile_free(volume->packedfile);
|
||||
volume->packedfile = nullptr;
|
||||
}
|
||||
#ifdef WITH_OPENVDB
|
||||
MEM_delete(volume->runtime->grids);
|
||||
volume->runtime->grids = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user