[Bf-blender-cvs] [0a8a190c819] cycles-x: Fix crash denoising shadow catcher in Cycles X

Sergey Sharybin noreply at git.blender.org
Fri Sep 10 18:36:49 CEST 2021


Commit: 0a8a190c819a8b6acfc87e62090c65cec3f9e0a8
Author: Sergey Sharybin
Date:   Fri Sep 10 18:35:49 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB0a8a190c819a8b6acfc87e62090c65cec3f9e0a8

Fix crash denoising shadow catcher in Cycles X

===================================================================

M	intern/cycles/integrator/pass_accessor.cpp

===================================================================

diff --git a/intern/cycles/integrator/pass_accessor.cpp b/intern/cycles/integrator/pass_accessor.cpp
index 2f057ddc663..5054991dbe6 100644
--- a/intern/cycles/integrator/pass_accessor.cpp
+++ b/intern/cycles/integrator/pass_accessor.cpp
@@ -213,8 +213,8 @@ bool PassAccessor::get_render_tile_pixels(const RenderBuffers *render_buffers,
         get_pass_float3(render_buffers, buffer_params, destination);
       }
       else if (pass_info.num_components == 4) {
-        if (type == PASS_COMBINED && destination.num_components == 3) {
-          /* Special case for combined pass access ignoring alpha channel. */
+        if (destination.num_components == 3) {
+          /* Special case for denoiser access of RGBA passes ignoring alpha channel. */
           get_pass_float3(render_buffers, buffer_params, destination);
         }
         else if (type == PASS_COMBINED || type == PASS_SHADOW_CATCHER ||



More information about the Bf-blender-cvs mailing list