fix: indirect asset references may not be fully lower case

This commit is contained in:
Jan 2024-02-08 22:59:42 +01:00
parent d2827e5e4d
commit a3dfb9e431
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -1,5 +1,7 @@
#include "XAssetInfo.h" #include "XAssetInfo.h"
#include "Utils/StringUtils.h"
IndirectAssetReference::IndirectAssetReference() IndirectAssetReference::IndirectAssetReference()
: m_type(-1) : m_type(-1)
{ {
@ -9,6 +11,7 @@ IndirectAssetReference::IndirectAssetReference(const asset_type_t type, std::str
: m_type(type), : m_type(type),
m_name(std::move(name)) m_name(std::move(name))
{ {
utils::MakeStringLowerCase(m_name);
} }
bool operator==(const IndirectAssetReference& lhs, const IndirectAssetReference& rhs) bool operator==(const IndirectAssetReference& lhs, const IndirectAssetReference& rhs)