From 68651534c26346015a70775aef1fdadab2946fb6 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 17 Aug 2020 11:09:16 +0200 Subject: Fix T77267: Render EEVEE AO pass when AO disabled. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In EEVEE the AO renderpass influenced other render passes. Until now the pass wasn't selectable when AO was disabled in the scene to remove these render artifacts. This patch allows rendering EEVEE AO pass without enabling it in the scene. It does this by binding a fallback texture that is used by the surface shaders. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7956 --- release/scripts/startup/bl_ui/properties_view_layer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_view_layer.py b/release/scripts/startup/bl_ui/properties_view_layer.py index 3645f0dc2f2..36bbf78d8ab 100644 --- a/release/scripts/startup/bl_ui/properties_view_layer.py +++ b/release/scripts/startup/bl_ui/properties_view_layer.py @@ -111,9 +111,7 @@ class VIEWLAYER_PT_eevee_layer_passes_light(ViewLayerButtonsPanel, Panel): col.prop(view_layer, "use_pass_emit", text="Emission") col.prop(view_layer, "use_pass_environment") col.prop(view_layer, "use_pass_shadow") - row = col.row() - row.prop(view_layer, "use_pass_ambient_occlusion", text="Ambient Occlusion") - row.active = scene_eevee.use_gtao + col.prop(view_layer, "use_pass_ambient_occlusion", text="Ambient Occlusion") class VIEWLAYER_PT_eevee_layer_passes_effects(ViewLayerButtonsPanel, Panel): -- cgit v1.2.3