fix: initialize default asset creator collection

This commit is contained in:
Jan 2024-12-31 13:50:08 +01:00
parent 27ef3152a0
commit da7a60221c
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
2 changed files with 2 additions and 2 deletions

View File

@ -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
{ {

View File

@ -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)