Fix DrawNode::drawPie(DrawMode::Line, thickness =1) draw a closed line (like DrawMode::Semi) (#2217)

This commit is contained in:
aismann 2024-10-22 15:56:00 +02:00 committed by GitHub
parent 8a705f1dcb
commit 044cc87543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -992,7 +992,7 @@ void DrawNode::_drawPolygon(const Vec2* verts,
extrude[i] = {offset, n2};
}
for (unsigned int i = 0; i < count; i++)
for (unsigned int i = 0; i < count-1; i++)
{
int j = (i + 1) % count;
Vec2 v0 = _vertices[i];