Make sure to clear the mesh when the width of the height changes.

This commit is contained in:
Relintai 2021-08-18 16:28:36 +02:00
parent 12a4e03376
commit 97b6897429

View File

@ -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();
}