exclude meshes with no vertices

This commit is contained in:
Kohei-Yanagida
2021-03-04 16:27:13 +09:00
parent 54de206aad
commit 350cf6114f

View File

@@ -216,7 +216,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<Mesh, Dictionary<int, int>>();
foreach (var (mesh, gltfMesh, blendShapeIndexMap) in MeshExporter.ExportMeshes(