mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
fix: initialize default asset creator collection
This commit is contained in:
parent
27ef3152a0
commit
da7a60221c
@ -110,8 +110,7 @@ XAssetInfoGeneric* AssetCreationContext::LoadDependencyGeneric(const asset_type_
|
|||||||
if (!result.HasFailed())
|
if (!result.HasFailed())
|
||||||
return result.GetAssetInfo();
|
return result.GetAssetInfo();
|
||||||
|
|
||||||
std::cerr << std::format(
|
std::cerr << std::format("Could not load asset \"{}\" of type \"{}\"\n", assetName, *m_zone->m_pools->GetAssetTypeName(assetType));
|
||||||
"Could not load indirectly referenced asset \"{}\" of type \"{}\"\n", assetName, *m_zone->m_pools->GetAssetTypeName(assetType));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
AssetCreatorCollection::AssetCreatorCollection(const Zone& zone)
|
AssetCreatorCollection::AssetCreatorCollection(const Zone& zone)
|
||||||
{
|
{
|
||||||
m_asset_creators_by_type.resize(zone.m_pools->GetAssetTypeCount());
|
m_asset_creators_by_type.resize(zone.m_pools->GetAssetTypeCount());
|
||||||
|
m_default_asset_creators_by_type.resize(zone.m_pools->GetAssetTypeCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
void AssetCreatorCollection::AddAssetCreator(std::unique_ptr<IAssetCreator> creator)
|
void AssetCreatorCollection::AddAssetCreator(std::unique_ptr<IAssetCreator> creator)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user