Blender Git Loki

Git Commits -> Revision 46da935

Revision 46da935 by Julian Eisel (asset-browser)
October 29, 2020, 14:24 (GMT)
Support storing asset repository data in files

Given that a repository can be built up from a single, or multiple
.blends, it's not clear where the repository data should live. It should
still be possible to easily share a .blend file to share assets,
including relevant meta-data that is not solely stored on the asset
level.
E.g. if you want to share a single pose library, that should be
doable by sharing a single .blend. So the .blend needs to have the pose
library meta-data, i.e. the name of the library and which poses belong
to it. The current design forsees that the Pose Library is implemented
as a "cataloge" (aka "smart-filter", to be determined). These should be
stored per asset category in the repository.

So this commit works towards the following design idea:
Each .blend file with assets can additionally store repository
meta-data. When reading a repository, we don't only read the asset
meta-data but also the repository meta-data in each .blend file. The
union over all the .blend files is the total repository meta-data the
asset browser can display.
That way each .blend file still is an isolated unit that doesn't
necessarily depend on the existence of other .blend files (or an index)
in the same repository.

This commit implements the storage framework of the repository meta-data.

I also added a temporary define to help spotting the related changes in
future.

Commit Details:

Full Hash: 46da935c55b0b585f4feced6035ff0a0e3b01bdb
Parent Commit: 02c7c2e
Lines Changed: +195, -14

14 Modified Paths:

/CMakeLists.txt (+2, -0) (Diff)
/source/blender/blenkernel/BKE_asset.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/asset.c (+30, -0) (Diff)
/source/blender/blenkernel/intern/blender.c (+6, -0) (Diff)
/source/blender/blenkernel/intern/blendfile.c (+17, -0) (Diff)
/source/blender/blenloader/BLO_blend_defs.h (+12, -0) (Diff)
/source/blender/blenloader/BLO_readfile.h (+3, -0) (Diff)
/source/blender/blenloader/BLO_writefile.h (+3, -0) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+9, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+29, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+45, -4) (Diff)
/source/blender/editors/asset/asset_ops.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+12, -0) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+17, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021