Explorar el Código

Update ObjectLoader.js

some small fixes
LebedenkoN hace 8 años
padre
commit
f41a08e027
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 
 			}