Blender Git Commit Log

Git Commits -> Revision 11012a8

July 30, 2021, 14:56 (GMT)
Assets/UI: Resolve major asset view UI template limitation

Before this, all asset view templates showing the same asset library
would show the same assets, even if they should show different ID types.
That was a major limitation since the design did forsee that this
template can be put anywhere in the UI to display various sub-sets of
assets.

Initially I did the ID type filtering close to the asset-list reading,
because I wanted to optimize reading so that we would only actually read
asset information from disk of the ID type to be shown. But this will be
quite complex and I'm not sure if I'll get to work on this anytime soon.
So this commit moves the filtering to the template display level solving
this limitation.

Note: This also adds the code to filter by tags, together with the ID
type. But it's not actually used anywhere yet.

Commit Details:

Full Hash: 11012a8fc19e7513d095245e848aa161c3a1fb62
Parent Commit: 3006327
Committed By: Fabian Schempp
Lines Changed: +121, -23

2 Added Paths:

/source/blender/editors/asset/ED_asset_filter.h (+35, -0) (View)
/source/blender/editors/asset/intern/asset_filter.cc (+64, -0) (View)

6 Modified Paths:

/source/blender/editors/asset/CMakeLists.txt (+2, -0) (Diff)
/source/blender/editors/asset/ED_asset_list.h (+0, -1) (Diff)
/source/blender/editors/asset/intern/asset_list.cc (+9, -18) (Diff)
/source/blender/editors/include/ED_asset.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_template_asset_view.cc (+9, -2) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+1, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021