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

Merge pull request #12936 from looeee/FBXLoader_restore_break_condition_to_getString

FBXLoader: Restore break condition to getString
......@@ -3651,12 +3651,8 @@
getString: function ( size ) {
var a = new Uint8Array( this.getUint8Array( size ) );
// for ( var i = 0; i < size; i ++ ) {
// a[ i ] = this.getUint8();
// }
var nullByte = a.indexOf( 0 );
if ( nullByte >= 0 ) a = a.slice( 0, nullByte );
return THREE.LoaderUtils.decodeText( a );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册