2
0
LebedenkoN 8 жил өмнө
parent
commit
dfd49ae989

+ 4 - 5
src/loaders/ObjectLoader.js

@@ -764,11 +764,10 @@ Object.assign( ObjectLoader.prototype, {
 			if ( data.userData !== undefined ) object.userData = data.userData;
 
 			if ( data.children !== undefined ) {
-
-				var that = this;
-				data.children.forEach(function(index, child){
-					object.add( that.parseObject( data.children[ child ], geometries, materials ) );
-				});
+				
+				data.children.forEach(function(child){
+					object.add( this.parseObject( data.children[ child ], geometries, materials ) );
+				}, this);
 
 			}