mirror of
https://github.com/SFML/SFML.git
synced 2024-12-03 08:41:04 +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
|
namespace sf
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
ConvexShape::ConvexShape() :
|
ConvexShape::ConvexShape()
|
||||||
myPoints()
|
|
||||||
{
|
{
|
||||||
Update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -37,7 +37,6 @@ myInnerRadius(0),
|
|||||||
myOuterRadius(0),
|
myOuterRadius(0),
|
||||||
myPointsCount(0)
|
myPointsCount(0)
|
||||||
{
|
{
|
||||||
Update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user