Просмотр исходного кода

Merge pull request #16272 from Mugen87/dev28

GLTFExporter: Fix handling of cacheKey.
Michael Herzog 6 лет назад
Родитель
Сommit
15a31bc229
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

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

粤ICP备19079148号