FIRE-24016 - apply chnage suggested by Angus Boyd for meshes that exceeed 64K verts on export

meow-7.2.2
Beq 2019-06-17 09:52:43 +01:00
parent 7e6a9b9db6
commit 28b8a4416a
1 changed files with 3 additions and 1 deletions

View File

@ -658,7 +658,9 @@ void DAESaver::addPolygons(daeElement* mesh, const char* geomID, const char* mat
{
for (S32 i = 0; i < face->mNumIndices; i++)
{
U16 index = index_offset + face->mIndices[i];
// FIRE-24016 Allow >64k verts in exported mesh
// Contributed by Angus Boyd
U32 index = index_offset + face->mIndices[i];
(p->getValue()).append(index);
if (i % 3 == 0)
{