浏览代码

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 );
 					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;
 						key += ':' + groups[ i ].start + ':' + groups[ i ].count;