Skip to content

Commit

Permalink
[gltf-loader] Use default byteOffset=0.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed May 8, 2017
1 parent 70febf8 commit e604c60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/js/loaders/GLTF2Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1309,9 +1309,10 @@ THREE.GLTF2Loader = ( function () {

var arraybuffer = dependencies.buffers[ bufferView.buffer ];

var byteLength = bufferView.byteLength !== undefined ? bufferView.byteLength : 0;
var byteLength = bufferView.byteLength || 0;
var byteOffset = bufferView.byteOffset || 0;

return arraybuffer.slice( bufferView.byteOffset, bufferView.byteOffset + byteLength );
return arraybuffer.slice( byteOffset, byteOffset + byteLength );

} );

Expand Down

0 comments on commit e604c60

Please sign in to comment.