Fix T98367: Light group passes do not work when shadow catcher is used

This commit is contained in:
Lukas Stockner 2022-07-24 20:32:19 +02:00 committed by Thomas Dinges
parent 2b83f3d521
commit 83d412a504
Notes: blender-bot 2023-02-14 10:32:59 +01:00
Referenced by issue #98661, 3.2: Potential candidates for corrective releases
Referenced by issue #98367, Light group passes does not work with shadow catcher object in the scene
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ const BufferPass *BufferParams::get_actual_display_pass(const BufferPass *pass)
return nullptr;
}
if (pass->type == PASS_COMBINED) {
if (pass->type == PASS_COMBINED && pass->lightgroup.empty()) {
const BufferPass *shadow_catcher_matte_pass = find_pass(PASS_SHADOW_CATCHER_MATTE, pass->mode);
if (shadow_catcher_matte_pass) {
pass = shadow_catcher_matte_pass;