提交 3593923e 编写于 作者: L Lewy Blue 提交者: Mr.doob

simplify getString method

上级 04ca29a5
......@@ -3650,13 +3650,13 @@
getString: function ( size ) {
var a = new Uint8Array( size );
var a = new Uint8Array( this.getUint8Array( size ) );
for ( var i = 0; i < size; i ++ ) {
// for ( var i = 0; i < size; i ++ ) {
a[ i ] = this.getUint8();
// a[ i ] = this.getUint8();
}
// }
return THREE.LoaderUtils.decodeText( a );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册