2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-02 06:57:26 +00:00

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

View File

@@ -605,7 +605,7 @@ namespace
for (auto vertexIndex = 0u; vertexIndex < vertexCount; vertexIndex++) 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); CreateVertex(surface.verts0[vertexIndex], commonVertex);
} }