Takahiro пре 6 година
родитељ
комит
1c3eefb65f
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 ) {
 				if ( accessor !== null ) {
 
 
 					attributes[ attributeName ] = accessor;
 					attributes[ attributeName ] = accessor;
-					setAttributeCache( attribute, accessor );
+					setAttributeCache( accessor, attribute );
 
 
 				}
 				}
 
 
@@ -1339,7 +1339,7 @@ THREE.GLTFExporter.prototype = {
 						}
 						}
 
 
 						target[ gltfAttributeName ] = processAccessor( relativeAttribute, geometry );
 						target[ gltfAttributeName ] = processAccessor( relativeAttribute, geometry );
-						setAttributeCache( baseAttribute, target[ gltfAttributeName ] );
+						setAttributeCache( target[ gltfAttributeName ], baseAttribute );
 
 
 					}
 					}