summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-31 10:51:54 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-09-01 06:13:01 +0000
commit379bab196e3ada14e755e6719e899b4b4952d9c2 (patch)
treea2174766c0c8aa426cf333dc832f272c28f6632d
parent1304b3d5de7e1205417c9b0d093f6b09bdc86bd9 (diff)
Support uint in glTF parserv5.6.0-alpha1
Index data will be int when short is not sufficient. Change-Id: Ic166cf2d073c99cf6c9e269e0cc1e0dac5e835fc Reviewed-by: Pasi Keränen <pasi.keranen@digia.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
-rw-r--r--src/plugins/sceneparsers/gltf/gltfparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/sceneparsers/gltf/gltfparser.cpp b/src/plugins/sceneparsers/gltf/gltfparser.cpp
index 711a03c86..762760a77 100644
--- a/src/plugins/sceneparsers/gltf/gltfparser.cpp
+++ b/src/plugins/sceneparsers/gltf/gltfparser.cpp
@@ -1241,6 +1241,8 @@ QAttribute::DataType GLTFParser::accessorTypeFromJSON(int componentType)
return QAttribute::Short;
} else if (componentType == GL_UNSIGNED_SHORT) {
return QAttribute::UnsignedShort;
+ } else if (componentType == GL_UNSIGNED_INT) {
+ return QAttribute::UnsignedInt;
} else if (componentType == GL_FLOAT) {
return QAttribute::Float;
}