Explorar el Código

JSONLoader: Fixed WaltHeadLo loading.

Mr.doob hace 11 años
padre
commit
545cbf4c34
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 };