mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed bug in sf::Shape
This commit is contained in:
parent
6381d10d40
commit
528961c967
@ -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…
Reference in New Issue
Block a user