From 39d9f269fae6b560ff0737d707a5a452302f3006 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 24 Oct 2024 18:37:03 +0300 Subject: [PATCH] add 16 bit indices support --- src/coders/vec3.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/coders/vec3.cpp b/src/coders/vec3.cpp index 286261d6..d6db56c3 100644 --- a/src/coders/vec3.cpp +++ b/src/coders/vec3.cpp @@ -131,6 +131,11 @@ static model::Mesh load_mesh(ByteReader& reader) { for (int i = 0; i < indices.size(); i++) { indices[i] = smallIndices[i]; } + } else { + reader.get( + reinterpret_cast(indices.data()), + indices.size() * sizeof(uint16_t) + ); } if (dataio::is_big_endian()) { for (int i = 0; i < indices.size(); i++) {