Sfoglia il codice sorgente

JSONLoader: Fixed WaltHeadLo loading.

Mr.doob 12 anni fa
parent
commit
545cbf4c34
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/loaders/JSONLoader.js

+ 1 - 1
src/loaders/JSONLoader.js

@@ -522,7 +522,7 @@ THREE.JSONLoader.prototype.parse = function ( json, texturePath ) {
 
 	};
 
-	if ( json.materials === undefined ) {
+	if ( json.materials === undefined || json.materials.length === 0 ) {
 
 		return { geometry: geometry };
 

粤ICP备19079148号