mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
Make AssetLoadingManager try to find referenced assets from global asset pools if non referencing asset was not found
This commit is contained in:
parent
620582aa18
commit
d8bd6fc11d
@ -74,6 +74,9 @@ XAssetInfoGeneric* AssetLoadingManager::LoadAssetDependency(const asset_type_t a
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto* existingAsset = loader->LoadFromGlobalAssetPools(assetName);
|
auto* existingAsset = loader->LoadFromGlobalAssetPools(assetName);
|
||||||
|
if (!existingAsset && !assetName.empty() && assetName[0] != ',')
|
||||||
|
existingAsset = loader->LoadFromGlobalAssetPools(',' + assetName);
|
||||||
|
|
||||||
if (existingAsset)
|
if (existingAsset)
|
||||||
{
|
{
|
||||||
std::vector<XAssetInfoGeneric*> dependencies;
|
std::vector<XAssetInfoGeneric*> dependencies;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user