Blender Git Loki
Git Commits -> Revision b71eb3a
Revision b71eb3a by Julian Eisel (master) December 15, 2020, 16:03 (GMT) |
Asset System: Data-block asset metadata storage, reading and API Asset metadata is what turns a regular data-block into an asset. It is a small data-structure, but a key part of the technical design of the asset system. The design foresees that asset data-blocks store an `ID.asset_data` pointer of type `AssetMetaData`. This data **must not** have dependencies on other data-blocks or data-block data, it must be an independent unit. That way we can read asset-metadata from .blends without reading anything else from the file. The Asset Browser will use this metadata (together with the data-block name, preview and file path) to represent assets in the file list. Includes: * New `ID.asset_data` for asset metadata. * Asset tags, description and custom properties. * BKE code to manage asset meta-data and asset tags. * Code to read asset data from files, without reading IDs. * RNA for asset metadata (including tags) 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/D9716 Reviewed by: Bastien Montagne, Brecht Van Lommel |
Commit Details:
Full Hash: b71eb3a105b8f7fb216a48082386215a6ea81cc4
Parent Commit: 82645ff
Lines Changed: +666, -2
5 Added Paths:
/source/blender/blenkernel/BKE_asset.h (+56, -0) (View)
/source/blender/blenkernel/intern/asset.c (+143, -0) (View)
/source/blender/makesdna/DNA_asset_defaults.h (+37, -0) (View)
/source/blender/makesdna/DNA_asset_types.h (+62, -0) (View)
/source/blender/makesrna/intern/rna_asset.c (+228, -0) (View)
/source/blender/blenkernel/intern/asset.c (+143, -0) (View)
/source/blender/makesdna/DNA_asset_defaults.h (+37, -0) (View)
/source/blender/makesdna/DNA_asset_types.h (+62, -0) (View)
/source/blender/makesrna/intern/rna_asset.c (+228, -0) (View)
17 Modified Paths:
/source/blender/blenkernel/CMakeLists.txt (+2, -0) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+5, -0) (Diff)
/source/blender/blenkernel/intern/lib_id_delete.c (+5, -0) (Diff)
/source/blender/blenloader/BLO_readfile.h (+8, -0) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+45, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+40, -1) (Diff)
/source/blender/blenloader/intern/readfile.h (+6, -0) (Diff)
/source/blender/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+6, -0) (Diff)
/source/blender/makesdna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/intern/dna_defaults.c (+9, -1) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+5, -0) (Diff)
/source/blender/blenkernel/intern/lib_id_delete.c (+5, -0) (Diff)
/source/blender/blenloader/BLO_readfile.h (+8, -0) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+45, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+40, -1) (Diff)
/source/blender/blenloader/intern/readfile.h (+6, -0) (Diff)
/source/blender/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+6, -0) (Diff)
/source/blender/makesdna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/intern/dna_defaults.c (+9, -1) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -0) (Diff)