From f1fc97f44997d7174fe9c916bbd31ef48df2fdf2 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 10 Feb 2021 14:31:51 +0900 Subject: [PATCH] =?UTF-8?q?root=20=E3=81=AE=20mesh=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs index 6e5a8ba74..9df3733ed 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs @@ -207,6 +207,12 @@ namespace UniGLTF Copy.transform.SetParent(m_tmpParent.transform, true); Copy = m_tmpParent; } + + if (Copy.transform.GetComponent() != null) + { + // should throw ? + Debug.LogError("root mesh is not exported"); + } } public void Dispose()