Browse Source

GLTFExporter: Replace if ( object.name ) with if ( object.name !== '' ) for the code consistency

Takahiro 7 years ago
parent
commit
2ede1251dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

@@ -1087,7 +1087,7 @@ THREE.GLTFExporter.prototype = {
 			}
 			}
 
 
 			// We don't export empty strings name because it represents no-name in Three.js.
 			// We don't export empty strings name because it represents no-name in Three.js.
-			if ( object.name ) {
+			if ( object.name !== '' ) {
 
 
 				gltfNode.name = String( object.name );
 				gltfNode.name = String( object.name );