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.
This commit is contained in:
Julian Eisel 2021-11-30 12:40:57 +01:00 committed by Philipp Oeser
parent 8ca4d20878
commit 2af6cb9dce
Notes: blender-bot 2023-02-14 06:25:25 +01:00
Referenced by issue #93479, 3.0 Potential candidates for corrective releases
1 changed files with 7 additions and 1 deletions

View File

@ -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: