Browse Source

[glTF] Fix typo in _each dependency resolution.

Don McCurdy 8 years ago
parent
commit
1b02bbec40
2 changed files with 4 additions and 4 deletions
  1. 2 2
      examples/js/loaders/GLTF2Loader.js
  2. 2 2
      examples/js/loaders/GLTFLoader.js

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

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

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

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