Преглед на файлове

GLTFExporter: Fix handling of cacheKey.

Mugen87 преди 6 години
родител
ревизия
5f73eba9d9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

@@ -1362,7 +1362,7 @@ THREE.GLTFExporter.prototype = {
 
 					if ( cachedData.attributes.has( cacheKey ) ) {
 
-						primitive.indices = cachedData.attributes.get( geometry.index );
+						primitive.indices = cachedData.attributes.get( cacheKey );
 
 					} else {