浏览代码

GLTFExporter: omit null indices

Gary Oberbrunner 6 年之前
父节点
当前提交
270a67358f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/js/exporters/GLTFExporter.js

+ 2 - 0
examples/js/exporters/GLTFExporter.js

@@ -1360,6 +1360,8 @@ THREE.GLTFExporter.prototype = {
 
 					}
 
+					if (primitive.indices === null)
+						delete primitive.indices
 				}
 
 				var material = processMaterial( materials[ groups[ i ].materialIndex ] );