diff options
author | Julian Eisel <julian@blender.org> | 2021-10-07 17:15:39 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-07 17:29:02 +0300 |
commit | c7b237e7d1a4c2adf03d5b7dc97b87691e6e224b (patch) | |
tree | a46678402152841d96376063b8313fc58e5e58a0 /release/scripts/startup | |
parent | 9f9e2dd25d70d81a8ea9cd9164c1b221398cbaee (diff) |
Asset Browser: Move Asset Library selector to navigation bar
The menu to select the active Asset Library is now in the left bar (so called
"Source List", although I'd prefer "Navigation-Bar").
This has some benefits:
* All Asset Library navigation is in the left sidebar now, giving nice grouping
and a top-to-bottom & left-to-right flow of the layout. The header is focused
on view set-up now.
* Catalogs are stored inside the asset library. Makes sense to have them right
under that.
* Less content in the header allows for less wide Asset Browsers without
extensive scrolling.
* This location gives more space to add options or operators for Asset
Libraries.
Main downside I see is that the side-bar needs to be opened to change
libraries, which takes quite some space. In practice there shouldn't be need to
do this often though.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_filebrowser.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py index 5dd8c69f3d5..f54a2446c7e 100644 --- a/release/scripts/startup/bl_ui/space_filebrowser.py +++ b/release/scripts/startup/bl_ui/space_filebrowser.py @@ -36,12 +36,6 @@ class FILEBROWSER_HT_header(Header): space_data = context.space_data params = space_data.params - row = layout.row(align=True) - row.prop(params, "asset_library_ref", text="") - # External libraries don't auto-refresh, add refresh button. - if params.asset_library_ref != 'LOCAL': - row.operator("file.refresh", text="", icon='FILE_REFRESH') - layout.separator_spacer() layout.prop(params, "import_type", text="") |