[Bf-blender-cvs] [2af6cb9dce3] blender-v3.0-release: Fix Asset Browser properties region toggle not showing open/closed state
Julian Eisel
noreply at git.blender.org
Mon Jan 10 17:04:37 CET 2022
Commit: 2af6cb9dce389a525f7a8effd2800de8a3c33d91
Author: Julian Eisel
Date: Tue Nov 30 12:40:57 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB2af6cb9dce389a525f7a8effd2800de8a3c33d91
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