Explorar el Código

Merge pull request #13209 from webprofusion-chrisc/patch-1

GLTFExporter: force node names to be strings.
Mr.doob hace 7 años
padre
commit
4a2fcf5bbb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

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