From 6894f50e5446ff0fac1f49b84c2c1c3a249aa9ed Mon Sep 17 00:00:00 2001 From: Takahiro Date: Wed, 17 Apr 2019 02:28:19 +0900 Subject: [PATCH] Revert "GLTFExporter: Fix export of multi-material meshes." This reverts commit aa3243fa11fee0087260102590f95a143b537be7. --- examples/js/exporters/GLTFExporter.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/js/exporters/GLTFExporter.js b/examples/js/exporters/GLTFExporter.js index d8d9eb3a2b..4be2647fd6 100644 --- a/examples/js/exporters/GLTFExporter.js +++ b/examples/js/exporters/GLTFExporter.js @@ -1358,16 +1358,14 @@ THREE.GLTFExporter.prototype = { if ( geometry.index !== null ) { - var cacheKey = geometry.uuid + ':' + groups[ i ].start + ':' + groups[ i ].count; - - if ( cachedData.attributes.has( cacheKey ) ) { + if ( cachedData.attributes.has( geometry.index ) ) { primitive.indices = cachedData.attributes.get( geometry.index ); } else { primitive.indices = processAccessor( geometry.index, geometry, groups[ i ].start, groups[ i ].count ); - cachedData.attributes.set( cacheKey, primitive.indices ); + cachedData.attributes.set( geometry.index, primitive.indices ); } -- GitLab