From 3692c0521ce5259db1b58e2f1c6cf895146ad754 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Tue, 30 Nov 2021 12:40:57 +0100 Subject: Fix Asset Browser properties region toggle not showing open/closed state The button is supposed to be blue (default theme) when the properties region is open, to indicate that state. --- release/scripts/startup/bl_ui/space_filebrowser.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py index 4ae9a33785f..5c34602d1c8 100644 --- a/release/scripts/startup/bl_ui/space_filebrowser.py +++ b/release/scripts/startup/bl_ui/space_filebrowser.py @@ -404,7 +404,13 @@ class FILEBROWSER_PT_advanced_filter(Panel): def is_option_region_visible(context, space): - if not space.active_operator: + from bpy_extras.asset_utils import SpaceAssetInfo + + if SpaceAssetInfo.is_asset_browser(space): + pass + # For the File Browser, there must be an operator for there to be options + # (irrelevant for the Asset Browser). + elif not space.active_operator: return False for region in context.area.regions: -- cgit v1.2.3