소스 검색

JSONLoader: Fixed WaltHeadLo loading.

Mr.doob 11 년 전
부모
커밋
545cbf4c34
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 };