From 5f73eba9d960e77697c5c5b94c95360f844aa9c4 Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Wed, 17 Apr 2019 11:32:56 +0200 Subject: [PATCH] GLTFExporter: Fix handling of cacheKey. --- examples/js/exporters/GLTFExporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/js/exporters/GLTFExporter.js b/examples/js/exporters/GLTFExporter.js index d8d9eb3a2bca1a..fb6b5dfbcbe35a 100644 --- a/examples/js/exporters/GLTFExporter.js +++ b/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 {