Cleanup: Get asset ID via asset representation, not via file

It is preferred to get asset data via the asset representation now,
since this should replace the file based asset handle design.
This commit is contained in:
Julian Eisel
2023-06-08 19:18:36 +02:00
parent 4394de611f
commit a7a3c00f76

View File

@@ -36,9 +36,9 @@ AssetMetaData *ED_asset_handle_get_metadata(const AssetHandle *asset_handle)
return AS_asset_representation_metadata_get(asset_handle->file_data->asset);
}
ID *ED_asset_handle_get_local_id(const AssetHandle *asset)
ID *ED_asset_handle_get_local_id(const AssetHandle *asset_handle)
{
return asset->file_data->id;
return AS_asset_representation_local_id_get(asset_handle->file_data->asset);
}
ID_Type ED_asset_handle_get_id_type(const AssetHandle *asset)