Explorar o código

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

GLTFExporter: force node names to be strings.
Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
4a2fcf5bbb
Modificáronse 1 ficheiros con 1 adicións e 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 );
 
 			}