diff options
author | Julian Eisel <julian@blender.org> | 2021-07-20 21:58:15 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-07-20 22:30:03 +0300 |
commit | 5a1b1c0ed2e6d085c93b8afd699407f92cc2d07d (patch) | |
tree | dc52de62700959ffedbc786e79ed39f6fe36f90b /source/blender/editors/include | |
parent | 207df439e1ad50b3af691f91710b886d0e997993 (diff) |
Cleanup: Getters for asset-handle data
While the asset-handle design is supposed to be temporary (see
35affaa971cf), I prefer keeping the fact that it's nothing but a file
entry pointer an implementation detail that is abstracted away. So this
introduces getters for the file data we typically access for
asset-handles.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_asset.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_asset.h b/source/blender/editors/include/ED_asset.h index 0058c0615c3..4fdee03528d 100644 --- a/source/blender/editors/include/ED_asset.h +++ b/source/blender/editors/include/ED_asset.h @@ -44,6 +44,10 @@ int ED_asset_library_reference_to_enum_value(const struct AssetLibraryReference struct AssetLibraryReference ED_asset_library_reference_from_enum_value(int value); const char *ED_asset_handle_get_name(const AssetHandle *asset); +AssetMetaData *ED_asset_handle_get_metadata(const AssetHandle *asset); +struct ID *ED_asset_handle_get_local_id(const AssetHandle *asset); +ID_Type ED_asset_handle_get_id_type(const AssetHandle *asset); +int ED_asset_handle_get_preview_icon_id(const AssetHandle *asset); void ED_asset_handle_get_full_library_path(const struct bContext *C, const AssetLibraryReference *asset_library, const AssetHandle *asset, @@ -69,7 +73,6 @@ void ED_assetlist_storage_tag_main_data_dirty(void); void ED_assetlist_storage_id_remap(struct ID *id_old, struct ID *id_new); void ED_assetlist_storage_exit(void); -ID *ED_assetlist_asset_local_id_get(const AssetHandle *asset_handle); struct ImBuf *ED_assetlist_asset_image_get(const AssetHandle *asset_handle); const char *ED_assetlist_library_path(const struct AssetLibraryReference *library_reference); |