소스 검색

Fix a bug in GLTFExporter

Takahiro 6 년 전
부모
커밋
c191afb0e1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

@@ -1377,7 +1377,7 @@ THREE.GLTFExporter.prototype = {
 
 					var key = getUID( geometry.index );
 
-					if ( groups[ i ].start !== undefined || groups[ i ] !== undefined ) {
+					if ( groups[ i ].start !== undefined || groups[ i ].count !== undefined ) {
 
 						key += ':' + groups[ i ].start + ':' + groups[ i ].count;