浏览代码

Fix the comparison with the result of processMaterial in GLTFExporter

Takahiro 8 年之前
父节点
当前提交
a33be5753b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

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