소스 검색

Merge pull request #12044 from takahirox/UpdateGLTFExporter

Fix the comparison with the result of processMaterial in GLTFExporter
Mr.doob 8 년 전
부모
커밋
4aacad1fb8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/js/exporters/GLTFExporter.js

+ 1 - 1
examples/js/exporters/GLTFExporter.js

@@ -650,7 +650,7 @@ THREE.GLTFExporter.prototype = {
 			};
 
 			var material = processMaterial( mesh.material );
-			if ( material ) {
+			if ( material !== null ) {
 
 				gltfMesh.primitives[ 0 ].material = material;