Просмотр исходного кода

GLTFExporter: Add comment for empty strings name

Takahiro 8 лет назад
Родитель
Сommit
a8b2ad6436
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      examples/js/exporters/GLTFExporter.js

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

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

粤ICP备19079148号