Browse Source

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

This reverts commit f3f932324654f42fda6d1daef7e95217575115cc.
Takahiro 7 years ago
parent
commit
2961f5c1dc
1 changed files with 1 additions and 1 deletions
  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 );