Fix PolygonSGO not generating body with two vertices.

This commit is contained in:
2022-10-01 23:42:58 +08:00
parent 5903264830
commit 6e7928e912

View File

@@ -209,7 +209,7 @@ namespace Cryville.Crtr.Components {
}
void GenerateMeshTo(List<Vector3> verts, List<Vector2> uvs, out List<int> tris, SpriteInfo info, ref int i, ref int t, ref float l, float startl, float endl, int vcpsec, int vend) {
if (i >= lengths.Count) {
if (i > lengths.Count) {
tris = _indexPool.Rent(0);
return;
}