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
Notes:
blender-bot
2023-02-14 06:25:25 +01:00
Referenced by issue #93479, 3.0 Potential candidates for corrective releases
|
@ -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…
Reference in New Issue