未验证 提交 1f4836bc 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #12929 from looeee/FBXLoader_fix_binaryparser_getstring

FBXLoader: allow BinaryParser.getString to use new LoaderUtils.decodeText method
......@@ -3650,11 +3650,15 @@
getString: function ( size ) {
var s = THREE.LoaderUtils.decodeText( this.getUint8Array( size ) );
var a = new Uint8Array( this.getUint8Array( size ) );
this.skip( size );
// for ( var i = 0; i < size; i ++ ) {
return s;
// 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.
先完成此消息的编辑!
想要评论请 注册