From d69e89213ccbb19c21e8e54928fccbc05b33dff0 Mon Sep 17 00:00:00 2001 From: Kohei-Yanagida Date: Thu, 4 Mar 2021 16:27:13 +0900 Subject: [PATCH] exclude meshes with no vertices --- Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs index 9df3733ed..1b38393c7 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs @@ -299,7 +299,7 @@ namespace UniGLTF #endregion #region Meshes - var unityMeshes = MeshWithRenderer.FromNodes(Nodes).ToList(); + var unityMeshes = MeshWithRenderer.FromNodes(Nodes).Where(x=> x.Mesh.vertices.Any()).ToList(); MeshBlendShapeIndexMap = new Dictionary>(); foreach (var (mesh, gltfMesh, blendShapeIndexMap) in MeshExporter.ExportMeshes(