Browse Source

Rename key to cacheKey in GLTFExporter

Takahiro 6 years ago
parent
commit
9bc496f23b
1 changed files with 5 additions and 5 deletions
  1. 5 5
      examples/js/exporters/GLTFExporter.js

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

@@ -1375,22 +1375,22 @@ THREE.GLTFExporter.prototype = {
 
 				if ( geometry.index !== null ) {
 
-					var key = getUID( geometry.index );
+					var cacheKey = getUID( geometry.index );
 
 					if ( groups[ i ].start !== undefined || groups[ i ].count !== undefined ) {
 
-						key += ':' + groups[ i ].start + ':' + groups[ i ].count;
+						cacheKey += ':' + groups[ i ].start + ':' + groups[ i ].count;
 
 					}
 
-					if ( cachedData.attributes.has( key ) ) {
+					if ( cachedData.attributes.has( cacheKey ) ) {
 
-						primitive.indices = cachedData.attributes.get( key );
+						primitive.indices = cachedData.attributes.get( cacheKey );
 
 					} else {
 
 						primitive.indices = processAccessor( geometry.index, geometry, groups[ i ].start, groups[ i ].count );
-						cachedData.attributes.set( key, primitive.indices );
+						cachedData.attributes.set( cacheKey, primitive.indices );
 
 					}