浏览代码

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

GLTFExporter: force node names to be strings.
Mr.doob 7 年之前
父节点
当前提交
4a2fcf5bbb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 );
 
 			}