Pārlūkot izejas kodu

Allow 0 and empty string as node name in GLTFExporter

Takahiro 8 gadi atpakaļ
vecāks
revīzija
f3f9323246
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 ) {
+			if ( object.name !== undefined ) {
 
 
 				gltfNode.name = String( object.name );
 				gltfNode.name = String( object.name );
 
 

粤ICP备19079148号