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

SceneLoader: Moved groups handling into a safer place.

上级 c3ef5629
......@@ -472,33 +472,34 @@ THREE.SceneLoader.prototype.parse = function ( json, callbackFinished, url ) {
}
if ( objJSON.children !== undefined ) {
if ( objJSON.groups !== undefined ) {
handle_children( object, objJSON.children );
for ( var i = 0; i < objJSON.groups.length; i ++ ) {
}
var groupID = objJSON.groups[ i ];
}
if ( result.groups[ groupID ] === undefined ) {
}
result.groups[ groupID ] = [];
if ( objJSON.groups !== undefined ) {
}
for ( var i = 0; i < objJSON.groups.length; i ++ ) {
result.groups[ groupID ].push( objID );
var groupID = objJSON.groups[i];
}
if ( result.groups[groupID] === undefined ) {
}
result.groups[groupID] = [];
if ( objJSON.children !== undefined ) {
}
handle_children( object, objJSON.children );
result.groups[groupID].push(objID);
}
}
}
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册