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

Merge remote-tracking branch 'pavelgj/dev' into dev

......@@ -111,7 +111,8 @@ THREE.SceneLoader.prototype.parse = function ( json, callbackFinished, url ) {
cameras: {},
lights: {},
fogs: {},
empties: {}
empties: {},
groups: {}
};
......@@ -481,6 +482,23 @@ THREE.SceneLoader.prototype.parse = function ( json, callbackFinished, url ) {
}
if ( objJSON.groups !== undefined ) {
for ( var i = 0; i < objJSON.groups.length; i ++ ) {
var groupID = objJSON.groups[i];
if ( result.groups[groupID] === undefined ) {
result.groups[groupID] = [];
}
result.groups[groupID].push(objID);
}
}
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册