提交 85e22951 编写于 作者: L Lewy Blue

Restore break condition to get string

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