提交 6a966dd5 编写于 作者: M Mr.doob

GLTFLoader: Don't fail when node is undefined.

上级 56ec5ce2
......@@ -1487,6 +1487,13 @@ THREE.GLTFLoader = ( function () {
var mesh = node.meshes[ meshId ];
var group = dependencies.meshes[ mesh ];
if ( group === undefined ) {
console.warn( 'GLTFLoader: Couldn\'t find node "' + mesh + '".' );
continue;
}
for ( var childrenId in group.children ) {
var child = group.children[ childrenId ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册