Procházet zdrojové kódy

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

Takahiro před 8 roky
rodič
revize
2ede1251dc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 );
 
 

粤ICP备19079148号