mirror of
https://github.com/Relintai/props.git
synced 2024-11-12 10:15:25 +01:00
Make sure to clear the mesh when the width of the height changes.
This commit is contained in:
parent
12a4e03376
commit
97b6897429
@ -32,6 +32,7 @@ int TiledWall::get_width() const {
|
||||
void TiledWall::set_width(const int value) {
|
||||
_width = value;
|
||||
|
||||
clear_mesh();
|
||||
generate_mesh();
|
||||
}
|
||||
|
||||
@ -41,6 +42,7 @@ int TiledWall::get_heigth() const {
|
||||
void TiledWall::set_heigth(const int value) {
|
||||
_height = value;
|
||||
|
||||
clear_mesh();
|
||||
generate_mesh();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user