Skip to content

Commit

Permalink
Fix for box2d path creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jules committed Oct 22, 2013
1 parent bbd620c commit e4e58ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/juce_box2d/utils/juce_Box2DRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ static void createPath (Path& p, const b2Vec2* vertices, int32 vertexCount)

for (int i = 1; i < vertexCount; ++i)
p.lineTo (vertices[i].x, vertices[i].y);

p.closeSubPath();
}

void Box2DRenderer::DrawPolygon (const b2Vec2* vertices, int32 vertexCount, const b2Color& color)
Expand Down

0 comments on commit e4e58ad

Please sign in to comment.