浏览代码

Revert "Allow 0 and empty string as node name in GLTFExporter"

This reverts commit f3f932324654f42fda6d1daef7e95217575115cc.
Takahiro 7 年之前
父节点
当前提交
2961f5c1dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

@@ -1086,7 +1086,7 @@ THREE.GLTFExporter.prototype = {
 
 
 			}
 			}
 
 
-			if ( object.name !== undefined ) {
+			if ( object.name ) {
 
 
 				gltfNode.name = String( object.name );
 				gltfNode.name = String( object.name );