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

Merge pull request #16362 from Mugen87/dev29

PCDLoader: Fix data parsing for Edge.
......@@ -169,7 +169,7 @@ THREE.PCDLoader.prototype = {
}
var textData = THREE.LoaderUtils.decodeText( data );
var textData = THREE.LoaderUtils.decodeText( new Uint8Array( data ) );
// parse header (always ascii format)
......
......@@ -24,8 +24,17 @@ var LoaderUtils = {
}
// Merges multi-byte utf-8 characters.
return decodeURIComponent( escape( s ) );
try {
// merges multi-byte utf-8 characters.
return decodeURIComponent( escape( s ) );
} catch ( e ) { // see #16358
return s;
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册