浏览代码

[glTF] Fix typo in _each dependency resolution.

Don McCurdy 8 年之前
父节点
当前提交
1b02bbec40
共有 2 个文件被更改,包括 4 次插入4 次删除
  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 ) {
 
-							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 {