Fix T78662: Cycles baking fails if denoising is enabled, after recent changes
This is not supported yet.
This commit is contained in:
parent
6fbacd6048
commit
3dc0178390
@ -181,8 +181,8 @@ class CPUDevice : public Device {
|
||||
#ifdef WITH_OPENIMAGEDENOISE
|
||||
oidn::DeviceRef oidn_device;
|
||||
oidn::FilterRef oidn_filter;
|
||||
thread_spin_lock oidn_task_lock;
|
||||
#endif
|
||||
thread_spin_lock oidn_task_lock;
|
||||
|
||||
bool use_split_kernel;
|
||||
|
||||
|
@ -1128,6 +1128,11 @@ bool Session::render_need_denoise(bool &delayed)
|
||||
{
|
||||
delayed = false;
|
||||
|
||||
/* Not supported yet for baking. */
|
||||
if (read_bake_tile_cb) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Denoising enabled? */
|
||||
if (!params.denoising.need_denoising_task()) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user