2
0
Эх сурвалжийг харах

GLTFExporter: omit null indices

Gary Oberbrunner 6 жил өмнө
parent
commit
270a67358f

+ 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 ] );