Procházet zdrojové kódy

Revert "Allow 0 and empty string as node name in GLTFExporter"

This reverts commit f3f932324654f42fda6d1daef7e95217575115cc.
Takahiro před 8 roky
rodič
revize
2961f5c1dc
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

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

粤ICP备19079148号