Browse Source

Merge pull request #13327 from selimbek/patch-1

Fix for GLTFExporter.js
Mr.doob 7 years ago
parent
commit
d7e826721b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/exporters/GLTFExporter.js

+ 1 - 1
examples/js/exporters/GLTFExporter.js

@@ -241,7 +241,7 @@ THREE.GLTFExporter.prototype = {
 
 
 					} else if ( componentType === WEBGL_CONSTANTS.UNSIGNED_INT ) {
 					} else if ( componentType === WEBGL_CONSTANTS.UNSIGNED_INT ) {
 
 
-						dataView.setUint8( offset, value, true );
+						dataView.setUint32( offset, value, true );
 
 
 					} else if ( componentType === WEBGL_CONSTANTS.UNSIGNED_SHORT ) {
 					} else if ( componentType === WEBGL_CONSTANTS.UNSIGNED_SHORT ) {