提交 59741600 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11959 from takahirox/FixGLTF2Loader

Check asset existence to detect glTF version
......@@ -79,7 +79,7 @@ THREE.GLTF2Loader = ( function () {
var json = JSON.parse( content );
if ( json.asset.version[0] < 2 ) {
if ( json.asset === undefined || json.asset.version[ 0 ] < 2 ) {
onError( new Error( 'THREE.GLTF2Loader: Legacy glTF detected. Use THREE.GLTFLoader instead.' ) );
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册