exclude meshes with no vertices

This commit is contained in:
Kohei-Yanagida
2021-03-04 16:27:13 +09:00
committed by hiroj
parent 2532eb5c05
commit d69e89213c

View File

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