Explorar el Código

GLTFExporter: omit null indices

Gary Oberbrunner hace 6 años
padre
commit
270a67358f
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 ] );