2
0
Эх сурвалжийг харах

Merge pull request #10832 from donmccurdy/bug-gltf-deps-resolve

[glTF] Fix typo in _each dependency resolution.
Mr.doob 8 жил өмнө
parent
commit
a76db5c979

+ 2 - 2
examples/js/loaders/GLTF2Loader.js

@@ -568,9 +568,9 @@ THREE.GLTF2Loader = ( function () {
 
 						value.then( function( key, value ) {
 
-							results[ idx ] = value;
+							results[ key ] = value;
 
-						}.bind( this, key ));
+						}.bind( this, idx ));
 
 					} else {
 

+ 2 - 2
examples/js/loaders/GLTFLoader.js

@@ -580,9 +580,9 @@ THREE.GLTFLoader = ( function () {
 
 						value.then( function( key, value ) {
 
-							results[ idx ] = value;
+							results[ key ] = value;
 
-						}.bind( this, key ));
+						}.bind( this, idx ));
 
 					} else {