fix: not being able to ignore assets of type attachment,attachmentunique

This commit is contained in:
Jan 2025-01-21 23:11:57 +01:00
parent 990bfe27df
commit 7a639a359c
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -262,7 +262,7 @@ namespace
for (const auto& attachmentName : valueArray) for (const auto& attachmentName : valueArray)
{ {
auto* attachmentAssetInfo = m_context.LoadDependency<AssetAttachment>(attachmentName); auto* attachmentAssetInfo = m_context.ForceLoadDependency<AssetAttachment>(attachmentName);
if (attachmentAssetInfo == nullptr) if (attachmentAssetInfo == nullptr)
{ {
std::cerr << std::format("Failed to load attachment asset \"{}\"\n", attachmentName); std::cerr << std::format("Failed to load attachment asset \"{}\"\n", attachmentName);
@ -314,7 +314,7 @@ namespace
for (const auto& attachmentUniqueName : valueArray) for (const auto& attachmentUniqueName : valueArray)
{ {
auto* attachmentUniqueAssetInfo = m_context.LoadDependency<AssetAttachmentUnique>(attachmentUniqueName); auto* attachmentUniqueAssetInfo = m_context.ForceLoadDependency<AssetAttachmentUnique>(attachmentUniqueName);
if (attachmentUniqueAssetInfo == nullptr) if (attachmentUniqueAssetInfo == nullptr)
{ {
std::cerr << std::format("Failed to load attachment unique asset \"{}\"\n", attachmentUniqueName); std::cerr << std::format("Failed to load attachment unique asset \"{}\"\n", attachmentUniqueName);