mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
fix: not being able to ignore assets of type attachment,attachmentunique
This commit is contained in:
parent
990bfe27df
commit
7a639a359c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user