Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-11-30 14:40:57 +0300
committerJulian Eisel <julian@blender.org>2021-11-30 14:40:57 +0300
commit3692c0521ce5259db1b58e2f1c6cf895146ad754 (patch)
tree68e10bda2b5689dddb55c5a0aa95adf9e87432ec /release
parentb67dca9b7674bed797fd04fcec790d809ed8dfb8 (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py8
1 files changed, 7 insertions, 1 deletions
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: