Blender Git Loki
Git Commits -> Revision 2d3e5ed
Revision 2d3e5ed by Julian Eisel (master) July 29, 2021, 15:35 (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: 2d3e5eda3f26e59945454cbca0d6533db4d980a8
Parent Commit: 8cb4e3d
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)
/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)
/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)