mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
8ca4d20878
commit
2af6cb9dce
1 changed files with 7 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue