浏览代码

Revert "Fix a bug"

This reverts commit 1c3eefb65f6b7b1b13e306351530409149bcc206.
Takahiro 6 年之前
父节点
当前提交
1f4b11fa91
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/exporters/GLTFExporter.js

+ 2 - 2
examples/js/exporters/GLTFExporter.js

@@ -1251,7 +1251,7 @@ THREE.GLTFExporter.prototype = {
 				if ( accessor !== null ) {
 
 					attributes[ attributeName ] = accessor;
-					setAttributeCache( accessor, attribute );
+					setAttributeCache( attribute, accessor );
 
 				}
 
@@ -1339,7 +1339,7 @@ THREE.GLTFExporter.prototype = {
 						}
 
 						target[ gltfAttributeName ] = processAccessor( relativeAttribute, geometry );
-						setAttributeCache( target[ gltfAttributeName ], baseAttribute );
+						setAttributeCache( baseAttribute, target[ gltfAttributeName ] );
 
 					}