fix: reduced amount of unnecessary mesh generations

This commit is contained in:
Sara Gerretsen 2026-04-22 22:47:38 +02:00
parent 17ab22da9c
commit 3945ee9b8a
3 changed files with 9 additions and 3 deletions

View file

@ -27,7 +27,7 @@ void TerrainModifier::_notification(int what) {
}
void TerrainModifier::push_changed(Rect2 area) {
if (this->terrain) {
if (this->terrain && is_inside_tree() && is_ready()) {
this->terrain->push_changed(area);
}
}