Cycles: Skip denoising during bake when pass does not support denoising
This changes fixes the slowdown when baking data passes like Normal with the denoiser enabled on scene settings. When baking to 4K textures denoising could take considerable amount of time, which is better be avoided. Pull Request: https://projects.blender.org/blender/blender/pulls/117483
This commit is contained in:
parent
ddc0aceefd
commit
6f681105ec
@ -650,6 +650,9 @@ static bool bake_setup_pass(Scene *scene, const string &bake_type, const int bak
|
||||
integrator->set_use_direct_light(use_direct_light);
|
||||
integrator->set_use_indirect_light(use_indirect_light);
|
||||
|
||||
const PassInfo pass_info = Pass::get_info(type);
|
||||
integrator->set_use_denoise(pass_info.support_denoise);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user