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

Revert "Fix a bug"

This reverts commit 1c3eefb65f6b7b1b13e306351530409149bcc206.
Takahiro 6 жил өмнө
parent
commit
1f4b11fa91

+ 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( accessor, attribute );
+					setAttributeCache( attribute, accessor );
 
 
 				}
 				}
 
 
@@ -1339,7 +1339,7 @@ THREE.GLTFExporter.prototype = {
 						}
 						}
 
 
 						target[ gltfAttributeName ] = processAccessor( relativeAttribute, geometry );
 						target[ gltfAttributeName ] = processAccessor( relativeAttribute, geometry );
-						setAttributeCache( target[ gltfAttributeName ], baseAttribute );
+						setAttributeCache( baseAttribute, target[ gltfAttributeName ] );
 
 
 					}
 					}