Sfoglia il codice sorgente

Merge pull request #15992 from garyo/fix/gltf-export-avoid-null

GLTFExporter: omit null indices
Mr.doob 6 anni fa
parent
commit
a46700a426
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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 ] );