mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
chore: use remapped vertex indices when building vertices in gltf loading
This commit is contained in:
parent
36bc3cf7a3
commit
2699de86b6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user