[Bf-blender-cvs] [3692c0521ce] master: Fix Asset Browser properties region toggle not showing open/closed state
Julian Eisel
noreply at git.blender.org
Tue Nov 30 12:42:55 CET 2021
Commit: 3692c0521ce5259db1b58e2f1c6cf895146ad754
Author: Julian Eisel
Date: Tue Nov 30 12:40:57 2021 +0100
Branches: master
https://developer.blender.org/rB3692c0521ce5259db1b58e2f1c6cf895146ad754
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.
===================================================================
M release/scripts/startup/bl_ui/space_filebrowser.py
===================================================================
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:
More information about the Bf-blender-cvs
mailing list