mirror of https://github.com/axmolengine/axmol.git
Fix DrawNode::drawPie(DrawMode::Line, thickness =1) draw a closed line (like DrawMode::Semi) (#2217)
This commit is contained in:
parent
8a705f1dcb
commit
044cc87543
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue