sf::Shape now outputs less warnings about the number of points

This commit is contained in:
Laurent Gomila 2011-12-04 11:25:20 +01:00
parent 7deec641ac
commit 0548b226ef
3 changed files with 1 additions and 5 deletions

View File

@ -31,10 +31,8 @@
namespace sf namespace sf
{ {
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
ConvexShape::ConvexShape() : ConvexShape::ConvexShape()
myPoints()
{ {
Update();
} }

View File

@ -172,7 +172,6 @@ void Shape::Update()
unsigned int count = GetOutlinePointsCount(); unsigned int count = GetOutlinePointsCount();
if (count < 3) if (count < 3)
{ {
sf::Err() << "Invalid shape: it has less than 3 points" << std::endl;
myVertices.Resize(0); myVertices.Resize(0);
myOutlineVertices.Resize(0); myOutlineVertices.Resize(0);
return; return;

View File

@ -37,7 +37,6 @@ myInnerRadius(0),
myOuterRadius(0), myOuterRadius(0),
myPointsCount(0) myPointsCount(0)
{ {
Update();
} }