浏览代码

Update ObjectLoader.js

some small fixes
LebedenkoN 8 年之前
父节点
当前提交
f41a08e027
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/loaders/ObjectLoader.js

+ 1 - 1
src/loaders/ObjectLoader.js

@@ -766,7 +766,7 @@ Object.assign( ObjectLoader.prototype, {
 			if ( data.children !== undefined ) {
 				
 				data.children.forEach(function(child){
-					object.add( this.parseObject( data.children[ child ], geometries, materials ) );
+					object.add( this.parseObject( child, geometries, materials ) );
 				}, this);
 
 			}