From da7a60221c4a656bc2bdb349d48ac4ee8bf267a1 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 31 Dec 2024 13:50:08 +0100 Subject: [PATCH] fix: initialize default asset creator collection --- src/ObjLoading/Asset/AssetCreationContext.cpp | 3 +-- src/ObjLoading/Asset/AssetCreatorCollection.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ObjLoading/Asset/AssetCreationContext.cpp b/src/ObjLoading/Asset/AssetCreationContext.cpp index f2f5cc25..a82c51e4 100644 --- a/src/ObjLoading/Asset/AssetCreationContext.cpp +++ b/src/ObjLoading/Asset/AssetCreationContext.cpp @@ -110,8 +110,7 @@ XAssetInfoGeneric* AssetCreationContext::LoadDependencyGeneric(const asset_type_ if (!result.HasFailed()) return result.GetAssetInfo(); - std::cerr << std::format( - "Could not load indirectly referenced asset \"{}\" of type \"{}\"\n", assetName, *m_zone->m_pools->GetAssetTypeName(assetType)); + std::cerr << std::format("Could not load asset \"{}\" of type \"{}\"\n", assetName, *m_zone->m_pools->GetAssetTypeName(assetType)); } else { diff --git a/src/ObjLoading/Asset/AssetCreatorCollection.cpp b/src/ObjLoading/Asset/AssetCreatorCollection.cpp index cdea92c8..0e83a3b7 100644 --- a/src/ObjLoading/Asset/AssetCreatorCollection.cpp +++ b/src/ObjLoading/Asset/AssetCreatorCollection.cpp @@ -5,6 +5,7 @@ AssetCreatorCollection::AssetCreatorCollection(const Zone& zone) { 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 creator)