[Bf-blender-cvs] [3e6907eb8a3] blender-v3.0-release: Fix T92002: Cycles baking certain light passes does not work

Brecht Van Lommel noreply at git.blender.org
Wed Nov 3 22:09:32 CET 2021


Commit: 3e6907eb8a3d90789f3f30a7b8ffdbe17771a0e8
Author: Brecht Van Lommel
Date:   Wed Nov 3 21:58:47 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB3e6907eb8a3d90789f3f30a7b8ffdbe17771a0e8

Fix T92002: Cycles baking certain light passes does not work

When reading pixels for virtual passes like diffuse, that sum diffuse direct
and indirect passes, we do not need them to exist with an offset in the render
buffer.

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

M	intern/cycles/integrator/pass_accessor.cpp

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

diff --git a/intern/cycles/integrator/pass_accessor.cpp b/intern/cycles/integrator/pass_accessor.cpp
index 7e19de51daa..4479442df56 100644
--- a/intern/cycles/integrator/pass_accessor.cpp
+++ b/intern/cycles/integrator/pass_accessor.cpp
@@ -138,10 +138,6 @@ bool PassAccessor::get_render_tile_pixels(const RenderBuffers *render_buffers,
     return false;
   }
 
-  if (pass_access_info_.offset == PASS_UNUSED) {
-    return false;
-  }
-
   const PassType type = pass_access_info_.type;
   const PassMode mode = pass_access_info_.mode;
   const PassInfo pass_info = Pass::get_info(type, pass_access_info_.include_albedo);



More information about the Bf-blender-cvs mailing list