10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26c200c commit f1a9afaCopy full SHA for f1a9afa
Assets/Scripts/Editor/Tools/GetSelectedMeshInfo.cs
@@ -59,7 +59,8 @@ void OnGUI()
59
{
60
int verts = meshes[i].sharedMesh.vertexCount;
61
totalVertices += verts;
62
- totalTris += meshes[i].sharedMesh.triangles.Length / 3;
+ // not for point/line meshes
63
+ if (meshes[i].sharedMesh.GetTopology(0) == MeshTopology.Triangles) to 4912 talTris += meshes[i].sharedMesh.triangles.Length / 3;
64
totalMeshes++;
65
topList.Add(i, verts);
66
}
0 commit comments