Blender Git Loki
Git Commits -> Revision 3417af0
July 6, 2020, 13:41 (GMT) |
Add new asset data-block type With this we can read asset data in .blends more efficiently, e.g. for browsing files or assets (where we avoid reading more than we have to). But there are other things besides performance that I'd like to play with. Basically I see the asset information a bit similar to library information, which we also deal with as a separate data-block. The "Create Asset" operator doesn't actually create these data-blocks yet. That'll be added in a followup commit. Of course this is not set in stone, but I think a reasonable design to work with for now. |
Commit Details:
Full Hash: 3417af0ebe89cb235398716b1d74d8b10120284f
Parent Commit: b2126c6
Lines Changed: +247, -4
2 Added Paths:
/source/blender/makesdna/DNA_asset_defaults.h (+39, -0) (View)
/source/blender/makesrna/intern/rna_asset.c (+49, -0) (View)
/source/blender/makesrna/intern/rna_asset.c (+49, -0) (View)
26 Modified Paths:
/source/blender/blenkernel/BKE_idtype.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_main.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/asset.c (+38, -0) (Diff)
/source/blender/blenkernel/intern/idtype.c (+6, -1) (Diff)
/source/blender/blenkernel/intern/lib_query.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/main.c (+4, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+23, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+10, -0) (Diff)
/source/blender/blentranslation/BLT_translation.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+3, -0) (Diff)
/source/blender/editors/interface/interface_templates.c (+3, -0) (Diff)
/source/blender/editors/render/render_opengl.c (+1, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+4, -0) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+2, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+6, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+4, -1) (Diff)
/source/blender/makesdna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/intern/dna_defaults.c (+8, -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 (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_main.c (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+17, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_main.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/asset.c (+38, -0) (Diff)
/source/blender/blenkernel/intern/idtype.c (+6, -1) (Diff)
/source/blender/blenkernel/intern/lib_query.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/main.c (+4, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+23, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+10, -0) (Diff)
/source/blender/blentranslation/BLT_translation.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+3, -0) (Diff)
/source/blender/editors/interface/interface_templates.c (+3, -0) (Diff)
/source/blender/editors/render/render_opengl.c (+1, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+4, -0) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+2, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+6, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+4, -1) (Diff)
/source/blender/makesdna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/intern/dna_defaults.c (+8, -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 (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_main.c (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+17, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)