From fb99999c1a99bff3e12ddee870c5dca9e94ba808 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Wed, 25 Mar 2020 17:48:37 +0900 Subject: [PATCH] Support uint --- examples/mesh-conv/mesh-conv.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/mesh-conv/mesh-conv.cc b/examples/mesh-conv/mesh-conv.cc index 09a2453..4b86a7d 100644 --- a/examples/mesh-conv/mesh-conv.cc +++ b/examples/mesh-conv/mesh-conv.cc @@ -397,6 +397,9 @@ static uint32_t UnpackIndex(const unsigned char *ptr, int type) { // TODO(syoyo): Check overflow(2G+ index) int32_t data = *reinterpret_cast(ptr); return uint32_t(data); + } else if (type == TINYGLTF_COMPONENT_TYPE_UNSIGNED_INT) { + uint32_t data = *reinterpret_cast(ptr); + return uint32_t(data); } else if (type == TINYGLTF_COMPONENT_TYPE_SHORT) { uint32_t data = *reinterpret_cast(ptr); return data;