diff options
author | Julian Eisel <julian@blender.org> | 2021-07-29 18:27:46 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-07-29 18:35:06 +0300 |
commit | 2d3e5eda3f26e59945454cbca0d6533db4d980a8 (patch) | |
tree | e74dfd57b37e7a75ffaafda885bb0189b68be88d /source/blender/makesdna | |
parent | 8cb4e3d0460eadfbbce0b8f6ba5f5da2915830e9 (diff) |
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.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_asset_types.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_asset_types.h b/source/blender/makesdna/DNA_asset_types.h index 316f8631ece..ca16e6728dd 100644 --- a/source/blender/makesdna/DNA_asset_types.h +++ b/source/blender/makesdna/DNA_asset_types.h @@ -41,8 +41,7 @@ typedef struct AssetTag { # typedef struct AssetFilterSettings { /** Tags to match against. These are newly allocated, and compared against the - * #AssetMetaData.tags. - * TODO not used and doesn't do anything yet. */ + * #AssetMetaData.tags. */ ListBase tags; /* AssetTag */ uint64_t id_types; /* rna_enum_id_type_filter_items */ } AssetFilterSettings; |