Skip to content

Commit

Permalink
fix: not being able to ignore assets of type attachment,attachmentunique
Browse files Browse the repository at this point in the history
  • Loading branch information
Laupetin committed Jan 21, 2025
1 parent e69cac0 commit 78731c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ObjLoading/Game/T6/Weapon/InfoStringLoaderWeaponT6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ namespace

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

for (const auto& attachmentUniqueName : valueArray)
{
auto* attachmentUniqueAssetInfo = m_context.LoadDependency<AssetAttachmentUnique>(attachmentUniqueName);
auto* attachmentUniqueAssetInfo = m_context.ForceLoadDependency<AssetAttachmentUnique>(attachmentUniqueName);
if (attachmentUniqueAssetInfo == nullptr)
{
std::cerr << std::format("Failed to load attachment unique asset \"{}\"\n", attachmentUniqueName);
Expand Down

0 comments on commit 78731c4

Please sign in to comment.