未验证 提交 322f1c80 编写于 作者: R Remus M 提交者: GitHub

decodeText update

上级 bfc92e41
......@@ -285,15 +285,7 @@ SEA3D.Stream.prototype.readUTF8 = function ( len ) {
var buffer = this.readBytes( len );
if ( window.TextDecoder ) {
return new TextDecoder().decode( buffer );
} else {
return decodeURIComponent( escape( String.fromCharCode.apply( null, new Uint8Array( buffer ) ) ) );
}
return THREE.LoaderUtils.decodeText( new Uint8Array( buffer ) );
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册