Browse Source

Update ObjectLoader.js

some small fixes
LebedenkoN 8 years ago
parent
commit
f41a08e027
1 changed files with 1 additions and 1 deletions
  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);
 
 			}