Make AssetLoadingManager try to find referenced assets from global asset pools if non referencing asset was not found

This commit is contained in:
Jan 2021-03-25 13:31:23 +01:00
parent 620582aa18
commit d8bd6fc11d

View File

@ -74,6 +74,9 @@ XAssetInfoGeneric* AssetLoadingManager::LoadAssetDependency(const asset_type_t a
}
auto* existingAsset = loader->LoadFromGlobalAssetPools(assetName);
if (!existingAsset && !assetName.empty() && assetName[0] != ',')
existingAsset = loader->LoadFromGlobalAssetPools(',' + assetName);
if (existingAsset)
{
std::vector<XAssetInfoGeneric*> dependencies;