ソースを参照

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 ) ) {
 					if ( cachedData.attributes.has( cacheKey ) ) {
 
 
-						primitive.indices = cachedData.attributes.get( geometry.index );
+						primitive.indices = cachedData.attributes.get( cacheKey );
 
 
 					} else {
 					} else {