Blender Git Loki
Git Commits -> Revision 2d6a69a
Revision 2d6a69a by Julian Eisel (master) December 15, 2020, 16:03 (GMT) |
Asset System: New Asset Browser editor This introduces the User Interface part of the Asset Browser, based on the design in T54642. Additions: * New Asset Browser (internally a sub-editor of the File Browser). * Navigation region showing asset categories. * Main region showing the assets of the selected asset library with previews. The assets may be stored over multiple .blends in the directory that's "mounted" as asset library in the Preferences. They will all be shown in this list. * Header with an asset library dropdown, allowing to choose the active asset library to show. Options are the "Current File" as asset library and all custom libraries. * Display popover, filter popover and search box (partially dummies, see T82680). * Sidebar showing the metadata of the currently active file (name, preview, description and tags), which can be edited for assets in the "Current File" asset library. (For others it will reset on reload.) * The sidebar includes a button to load a custom preview image from a file. * Make asset files draggable (with preview image). * If a library with invalid path is selected, a message is drawn in the main region to help the user understand what's wrong. * Operators to add and remove asset tags. Exposed in the sidebar. * "Only Assets" option for Link/Append. * Internal utilities for asset UI scripts. For screenshots or demo videos, please see D9725. Or the 2.92 release notes. Note that there are many things to be tweaked and polished in the Asset Browser UI still. For example, the filter and display popovers are mostly dummies. See T82680. Part of the first Asset Browser milestone. Check the #asset_browser_milestone_1 project milestone on developer.blender.org. Differential Revision: https://developer.blender.org/D9725 Reviewed by: Brecht Van Lommel, Hans Goudey |
Commit Details:
Full Hash: 2d6a69ae4e9905a19ac7228b97ed08fb4ea72e75
Parent Commit: 70474e1
Lines Changed: +677, -56
2 Added Paths:
/release/scripts/modules/bpy_extras/asset_utils.py (+63, -0) (View)
/release/scripts/startup/bl_operators/assets.py (+74, -0) (View)
/release/scripts/startup/bl_operators/assets.py (+74, -0) (View)
12 Modified Paths:
/release/scripts/modules/bpy_extras/__init__.py (+1, -0) (Diff)
/release/scripts/startup/bl_operators/__init__.py (+1, -0) (Diff)
/release/scripts/startup/bl_ui/space_filebrowser.py (+174, -22) (Diff)
/source/blender/editors/interface/interface_style.c (+6, -2) (Diff)
/source/blender/editors/space_file/file_draw.c (+173, -13) (Diff)
/source/blender/editors/space_file/file_intern.h (+3, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+25, -3) (Diff)
/source/blender/editors/space_file/file_utils.c (+15, -2) (Diff)
/source/blender/editors/space_file/space_file.c (+75, -12) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+62, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+3, -2) (Diff)
/release/scripts/startup/bl_operators/__init__.py (+1, -0) (Diff)
/release/scripts/startup/bl_ui/space_filebrowser.py (+174, -22) (Diff)
/source/blender/editors/interface/interface_style.c (+6, -2) (Diff)
/source/blender/editors/space_file/file_draw.c (+173, -13) (Diff)
/source/blender/editors/space_file/file_intern.h (+3, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+25, -3) (Diff)
/source/blender/editors/space_file/file_utils.c (+15, -2) (Diff)
/source/blender/editors/space_file/space_file.c (+75, -12) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+62, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+3, -2) (Diff)