Browse Source

MD2Loader: Clean up.

Mr.doob 3 years ago
parent
commit
e40e408c50
1 changed files with 5 additions and 5 deletions
  1. 5 5
      examples/jsm/loaders/MD2Loader.js

+ 5 - 5
examples/jsm/loaders/MD2Loader.js

@@ -243,7 +243,7 @@ class MD2Loader extends Loader {
 
 
 			for ( let j = 0; j < 16; j ++ ) {
 			for ( let j = 0; j < 16; j ++ ) {
 
 
-				const character = data.getUint8( offset + j, true );
+				const character = data.getUint8( offset + j );
 				if ( character === 0 ) break;
 				if ( character === 0 ) break;
 
 
 				string[ j ] = character;
 				string[ j ] = character;
@@ -260,10 +260,10 @@ class MD2Loader extends Loader {
 
 
 			for ( let j = 0; j < header.num_vertices; j ++ ) {
 			for ( let j = 0; j < header.num_vertices; j ++ ) {
 
 
-				let x = data.getUint8( offset ++, true );
-				let y = data.getUint8( offset ++, true );
-				let z = data.getUint8( offset ++, true );
-				const n = _normalData[ data.getUint8( offset ++, true ) ];
+				let x = data.getUint8( offset ++ );
+				let y = data.getUint8( offset ++ );
+				let z = data.getUint8( offset ++ );
+				const n = _normalData[ data.getUint8( offset ++ ) ];
 
 
 				x = x * scale.x + translation.x;
 				x = x * scale.x + translation.x;
 				y = y * scale.y + translation.y;
 				y = y * scale.y + translation.y;