mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
sf::Shape now outputs less warnings about the number of points
This commit is contained in:
parent
7deec641ac
commit
0548b226ef
@ -31,10 +31,8 @@
|
||||
namespace sf
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
ConvexShape::ConvexShape() :
|
||||
myPoints()
|
||||
ConvexShape::ConvexShape()
|
||||
{
|
||||
Update();
|
||||
}
|
||||
|
||||
|
||||
|
@ -172,7 +172,6 @@ void Shape::Update()
|
||||
unsigned int count = GetOutlinePointsCount();
|
||||
if (count < 3)
|
||||
{
|
||||
sf::Err() << "Invalid shape: it has less than 3 points" << std::endl;
|
||||
myVertices.Resize(0);
|
||||
myOutlineVertices.Resize(0);
|
||||
return;
|
||||
|
@ -37,7 +37,6 @@ myInnerRadius(0),
|
||||
myOuterRadius(0),
|
||||
myPointsCount(0)
|
||||
{
|
||||
Update();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user