浏览代码

MD2Loader: Clean up.

Mr.doob 3 年之前
父节点
当前提交
e40e408c50
共有 1 个文件被更改,包括 5 次插入5 次删除
  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 ++ ) {
 
-				const character = data.getUint8( offset + j, true );
+				const character = data.getUint8( offset + j );
 				if ( character === 0 ) break;
 
 				string[ j ] = character;
@@ -260,10 +260,10 @@ class MD2Loader extends Loader {
 
 			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;
 				y = y * scale.y + translation.y;