Fix T99055: Cycles vertex color bake + denoising gives bad result
No denoising is supported in this case, it only works on images.
This commit is contained in:
parent
1c2c468abc
commit
b29d6de77a
Notes:
blender-bot
2024-04-29 13:07:32 +02:00
Referenced by issue #99055, Baking to vertex color with denoising causes unexpected green color and face-corner artifacts
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue