Преглед на файлове

Merge pull request #13359 from takahirox/GLTFExporterNodeName

GLTFExporter: Add comment for empty strings name
Mr.doob преди 7 години
родител
ревизия
3c86cd28c3
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      examples/js/exporters/GLTFExporter.js

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

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