Fixed bug in sf::Shape
This commit is contained in:
parent
6381d10d40
commit
528961c967
1 changed files with 1 additions and 0 deletions
|
@ -186,6 +186,7 @@ void Shape::Update()
|
|||
myVertices[count + 1].Position = myVertices[1].Position;
|
||||
|
||||
// Update the bounding rectangle
|
||||
myVertices[0] = myVertices[1]; // so that the result of GetBounds() is correct
|
||||
myInsideBounds = myVertices.GetBounds();
|
||||
|
||||
// Compute the center and make it the first vertex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue