sf::ConvexShape was not updated when SetPointsCount or SetPoint was called
This commit is contained in:
parent
eeff685255
commit
6034b80ddf
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user