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