From 28b8a4416aa76299785a1ccc635d29af196b076d Mon Sep 17 00:00:00 2001 From: Beq Date: Mon, 17 Jun 2019 09:52:43 +0100 Subject: [PATCH] FIRE-24016 - apply chnage suggested by Angus Boyd for meshes that exceeed 64K verts on export --- indra/newview/daeexport.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/daeexport.cpp b/indra/newview/daeexport.cpp index 7078c32daf..15984fcf1c 100644 --- a/indra/newview/daeexport.cpp +++ b/indra/newview/daeexport.cpp @@ -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) {