未验证 提交 adc8d5bf 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13468 from takahirox/GLTFExporterNameCheck

GLTFExporter: Compare .name with empty strings for the consistency
...@@ -801,7 +801,7 @@ THREE.GLTFExporter.prototype = { ...@@ -801,7 +801,7 @@ THREE.GLTFExporter.prototype = {
} }
if ( material.name ) { if ( material.name !== '' ) {
gltfMaterial.name = material.name; gltfMaterial.name = material.name;
...@@ -1079,7 +1079,7 @@ THREE.GLTFExporter.prototype = { ...@@ -1079,7 +1079,7 @@ THREE.GLTFExporter.prototype = {
} }
if ( camera.name ) { if ( camera.name !== '' ) {
gltfCamera.name = camera.type; gltfCamera.name = camera.type;
...@@ -1401,7 +1401,7 @@ THREE.GLTFExporter.prototype = { ...@@ -1401,7 +1401,7 @@ THREE.GLTFExporter.prototype = {
}; };
if ( scene.name ) { if ( scene.name !== '' ) {
gltfScene.name = scene.name; gltfScene.name = scene.name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册