Explorar o código

Merge pull request #11352 from takahirox/FixBinaryLoader

Fix an offset bug in BinaryLoader
Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
9c6b7a9a58
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/loaders/BinaryLoader.js

+ 1 - 1
examples/js/loaders/BinaryLoader.js

@@ -250,7 +250,7 @@ THREE.BinaryLoader.prototype = {
 
 				for ( var i = 0; i < length; i ++ ) {
 
-					text += String.fromCharCode( charArray[ offset + i ] );
+					text += String.fromCharCode( charArray[ i ] );
 
 				}