Sfoglia il codice sorgente

GLTFLoader: Add comment for MultiMaterial

Takahiro 7 anni fa
parent
commit
b986b36399
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      examples/js/loaders/GLTFLoader.js

+ 3 - 0
examples/js/loaders/GLTFLoader.js

@@ -1361,6 +1361,9 @@ THREE.GLTFLoader = ( function () {
 	 */
 	function isCombinable( primitives ) {
 
+		// Returns true if all primitives use the same attributes/morphAttributes/mode
+		// and also have index. Otherwise returns false.
+
 		var primitive0 = primitives[ 0 ];
 		var targets0 = primitive0.targets || [];