Blender Git Loki
Git Commits -> Revision 796c599
Revision 796c599 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) February 23, 2021, 17:50 (GMT) |
Add initial asset-view template, with dummy contents (palette colors) Idea is to be able to display a list of assets in a layout, by giving it some custom filtering settings (not done yet). This would be just a uiList managed by Blender, displaying previews similar to the Asset Browser. I decided to use uiLists for this because it already deals with stuff like writing its UI data to .blends (e.g. filtering and sort settings), filtering and scrolling. But I think we'll have to do a number of general improvements to them. Here I just added a new (C-only for now) "flexible grid" list display type, which uses bigger previews and behaves much better than the currend "grid" one. There's a bit of hacking going on here and things will probably change. For now I'm just interested in getting the basics done to see if the direction is good. |
Commit Details:
Full Hash: 796c599194c4017b7f32970b582d249ca6413289
Parent Commit: 420f538
Lines Changed: +286, -38
1 Added Path:
/source/blender/editors/interface/interface_template_asset_view.cc (+111, -0) (View)
9 Modified Paths:
/release/scripts/startup/bl_ui/space_view3d.py (+13, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/interface/interface_templates.c (+146, -38) (Diff)
/source/blender/editors/space_api/spacetypes.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_palette.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+4, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/interface/interface_templates.c (+146, -38) (Diff)
/source/blender/editors/space_api/spacetypes.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_palette.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+4, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)