Explorar o código

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

Takahiro %!s(int64=8) %!d(string=hai) anos
pai
achega
2ede1251dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.
-			if ( object.name ) {
+			if ( object.name !== '' ) {
 
 				gltfNode.name = String( object.name );
 

粤ICP备19079148号