From 8e4a8c517a3e0f1131e362ddc714403499fa85d2 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 28 Feb 2022 17:22:59 +0900 Subject: [PATCH] Not throw if other than MeshRenderer and SkinnedMeshRenderer --- .../Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs index 1835ab908..1299b1c91 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs @@ -212,17 +212,19 @@ namespace UniGLTF } else { - throw new NotImplementedException(); + // do nothing + // TrailRenderer, ParticleSystemRenderer ... etc } - if (Mesh == null) + if (Mesh = null) { Summary = "no mesh"; } - - VertexColor = VertexColorUtility.DetectVertexColor(Mesh, Materials); - - PushRenderer(renderer); + else + { + VertexColor = VertexColorUtility.DetectVertexColor(Mesh, Materials); + PushRenderer(renderer); + } } public void PushRenderer(Renderer renderer)