fix: make vertex decl asset references work when building

This commit is contained in:
Jan 2024-04-02 23:52:38 +02:00
parent d1a189defc
commit 976fbf94f8
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -48,6 +48,10 @@ bool AssetLoaderVertexDecl::LoadFromRaw(
MaterialVertexDeclaration decl{};
size_t currentOffset = 0u;
if (!assetName.empty() && assetName[0] == ',')
currentOffset = 1u;
std::string sourceAbbreviation;
while (NextAbbreviation(assetName, sourceAbbreviation, currentOffset))
{