diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-08-04 20:28:09 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-08-04 20:28:09 +0300 |
commit | b29d6de77a61beb7cbb3bc1839658e8c4796d714 (patch) | |
tree | bd61a2248ff31c62a7643cf7ac9fe03fac077f21 | |
parent | 1c2c468abc9ecbc09eb87eff4da2023ea506d606 (diff) |
Fix T99055: Cycles vertex color bake + denoising gives bad result
No denoising is supported in this case, it only works on images.
-rw-r--r-- | intern/cycles/blender/sync.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/intern/cycles/blender/sync.cpp b/intern/cycles/blender/sync.cpp index 63e9e1e0e68..429a8e665af 100644 --- a/intern/cycles/blender/sync.cpp +++ b/intern/cycles/blender/sync.cpp @@ -412,7 +412,15 @@ void BlenderSync::sync_integrator(BL::ViewLayer &b_view_layer, bool background) integrator->set_direct_light_sampling_type(direct_light_sampling_type); #endif - const DenoiseParams denoise_params = get_denoise_params(b_scene, b_view_layer, background); + DenoiseParams denoise_params = get_denoise_params(b_scene, b_view_layer, background); + + /* No denoising support for vertex color baking, vertices packed into image + * buffer have no relation to neighbors. */ + if (scene->bake_manager->get_baking() && + b_scene.render().bake().target() != BL::BakeSettings::target_IMAGE_TEXTURES) { + denoise_params.use = false; + } + integrator->set_use_denoise(denoise_params.use); /* Only update denoiser parameters if the denoiser is actually used. This allows to tweak |