[Bf-blender-cvs] [b29d6de77a6] blender-v3.3-release: Fix T99055: Cycles vertex color bake + denoising gives bad result
Brecht Van Lommel
noreply at git.blender.org
Thu Aug 4 20:20:35 CEST 2022
Commit: b29d6de77a61beb7cbb3bc1839658e8c4796d714
Author: Brecht Van Lommel
Date: Thu Aug 4 19:28:09 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBb29d6de77a61beb7cbb3bc1839658e8c4796d714
Fix T99055: Cycles vertex color bake + denoising gives bad result
No denoising is supported in this case, it only works on images.
===================================================================
M intern/cycles/blender/sync.cpp
===================================================================
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
More information about the Bf-blender-cvs
mailing list