提交 04ca29a5 编写于 作者: L Lewy Blue 提交者: Mr.doob

Fix getString to use new LoaderUtils.decodeText method

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