Blender Git Loki

Git Commits -> Revision d28aaf6

Revision d28aaf6 by Julian Eisel (master)
October 20, 2021, 11:38 (GMT)
Asset Browser: Show current file assets in other asset libraries if contained

If the current file is saved within an asset library, showing that asset
library in the Asset Browser will also display the assets from this current
file now. In fact, it's the latest state of the open file, including all
unsaved modifications.
These assets will show a little Blender icon in the preview image, which is our
usual icon for current file data.

Note that this means an important design change: The "Current File" asset
library isn't the only place to edit assets from anymore. From now on assets
from the current file can also be edited in the context of the full asset
library. See T90193 for more info.

Technical info:
Besides just including the assets from the current `Main`, this requires
partial clearing and reading of file-lists, so that asset operations (e.g.
removing an asset data-block) doesn't require a full reload of the asset
library.

Maniphest Task: https://developer.blender.org/T90193

Commit Details:

Full Hash: d28aaf6139c8cfa8555542f4f228f390485dd7ed
Parent Commit: 4f15c24
Lines Changed: +291, -94

6 Modified Paths:

/source/blender/editors/asset/intern/asset_list.cc (+2, -4) (Diff)
/source/blender/editors/interface/interface.c (+3, -0) (Diff)
/source/blender/editors/space_file/filelist.c (+269, -76) (Diff)
/source/blender/editors/space_file/filelist.h (+2, -0) (Diff)
/source/blender/editors/space_file/file_draw.c (+11, -0) (Diff)
/source/blender/editors/space_file/space_file.c (+4, -14) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021