From 6e7928e91246316131f717e6f5a5d3ce26e473f1 Mon Sep 17 00:00:00 2001 From: PopSlime Date: Sat, 1 Oct 2022 23:42:58 +0800 Subject: [PATCH] Fix PolygonSGO not generating body with two vertices. --- Assets/Cryville/Crtr/Components/SectionalGameObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Cryville/Crtr/Components/SectionalGameObject.cs b/Assets/Cryville/Crtr/Components/SectionalGameObject.cs index f9d1196..65ef0c2 100644 --- a/Assets/Cryville/Crtr/Components/SectionalGameObject.cs +++ b/Assets/Cryville/Crtr/Components/SectionalGameObject.cs @@ -209,7 +209,7 @@ namespace Cryville.Crtr.Components { } void GenerateMeshTo(List verts, List uvs, out List 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; }