skip topology that is not MeshTopology.Triangles

This commit is contained in:
ousttrue 2024-11-11 13:49:52 +09:00
parent 02f1573060
commit 94c5219117

View File

@ -266,12 +266,6 @@ namespace UniGLTF
}
}
static bool TryGetMeshInfo()
{
return true;
}
public void CalcMeshSize(
GameObject root,
Renderer renderer,
@ -423,10 +417,19 @@ namespace UniGLTF
}
var info = new MeshExportInfo(renderer, settings);
if (info.Mesh != null)
if (info.Mesh == null)
{
m_list.Add(info);
continue;
}
for (int i = 0; i < info.Mesh.subMeshCount; ++i)
{
if (info.Mesh.GetTopology(i) != MeshTopology.Triangles)
{
continue;
}
}
m_list.Add(info);
}
}
}