chore: use remapped vertex indices when building vertices in gltf loading

This commit is contained in:
Jan 2024-09-03 22:28:04 +02:00
parent 36bc3cf7a3
commit 2699de86b6
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -605,7 +605,7 @@ namespace
for (auto vertexIndex = 0u; vertexIndex < vertexCount; vertexIndex++)
{
const auto& commonVertex = common.m_vertices[vertexIndex];
const auto& commonVertex = common.m_vertices[vertexIndices[vertexIndex]];
CreateVertex(surface.verts0[vertexIndex], commonVertex);
}