Explorar o código

GLTFExporter: Fix handling of cacheKey.

Mugen87 %!s(int64=6) %!d(string=hai) anos
pai
achega
5f73eba9d9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {