Blender Git Commit Log

Git Commits -> Revision bc9eac2

March 1, 2021, 15:45 (GMT)
Initial AssetList API & use it to load assets for the asset view tempate

Lots of hacks and temporary code here. I wanted a first working version to find
possible pain points before getting into details.

Basic idea is to store each asset library in an `AssetList`, with a globally
accessible storage. Internally the list uses the File Browser's `FileList`
which already does a fair amount of heavy lifting (threaded file & external
asset reading, lazy loading of visible previews, ...). The File Browser could
access the global asset-list storage as well.

The asset view template uses the new asset list to load and display the assets.

Current state: {F9856940}

Open TODOs: https://developer.blender.org/maniphest/query/M6RWFxFSDor3/#R

Commit Details:

Full Hash: bc9eac28bab696de3cbfed8c2dfddd63271edd3f
Parent Commit: 796c599
Lines Changed: +969, -151

1 Added Path:

/source/blender/editors/asset/asset_list.cc (+347, -0) (View)

23 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d.py (+3, -1) (Diff)
/source/blender/blenloader/intern/versioning_290.c (+17, -0) (Diff)
/source/blender/editors/asset/asset_edit.cc (+54, -0) (Diff)
/source/blender/editors/asset/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/include/ED_asset.h (+22, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+29, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+8, -0) (Diff)
/source/blender/editors/interface/interface_templates.c (+168, -72) (Diff)
/source/blender/editors/interface/interface_template_asset_view.cc (+123, -38) (Diff)
/source/blender/editors/space_file/filelist.c (+2, -2) (Diff)
/source/blender/editors/space_file/filelist.h (+1, -0) (Diff)
/source/blender/editors/space_file/filesel.c (+7, -6) (Diff)
/source/blender/editors/space_file/file_draw.c (+2, -1) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+35, -0) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+2, -18) (Diff)
/source/blender/makesdna/DNA_view3d_defaults.h (+7, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+81, -0) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+12, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+34, -12) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+6, -0) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021