fix: reduced amount of unnecessary mesh generations
This commit is contained in:
parent
17ab22da9c
commit
3945ee9b8a
3 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue