From 6034b80ddfa2c90f40b4f9e5c1aa48798ce4eebf Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sat, 3 Dec 2011 14:24:26 +0100 Subject: [PATCH] sf::ConvexShape was not updated when SetPointsCount or SetPoint was called --- src/SFML/Graphics/ConvexShape.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SFML/Graphics/ConvexShape.cpp b/src/SFML/Graphics/ConvexShape.cpp index 222d5367..44693c24 100644 --- a/src/SFML/Graphics/ConvexShape.cpp +++ b/src/SFML/Graphics/ConvexShape.cpp @@ -45,6 +45,7 @@ ConvexShape::ConvexShape() void ConvexShape::SetPointsCount(unsigned int count) { myPoints.resize(count); + Update(); } @@ -59,6 +60,7 @@ unsigned int ConvexShape::GetPointsCount() const void ConvexShape::SetPoint(unsigned int index, const Vector2f& point) { myPoints[index] = point; + Update(); }