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

@ -74,10 +74,9 @@ void TerrainModifierPath::_notification(int what) {
case NOTIFICATION_READY:
children_changed();
set_notify_transform(true);
update_bounds();
return;
case NOTIFICATION_TRANSFORM_CHANGED:
if (is_inside_tree()) {
if (is_inside_tree() && is_ready()) {
path_changed();
}
return;
@ -172,6 +171,9 @@ void TerrainModifierPath::path_changed() {
}
}
update_configuration_warnings();
if (!is_ready()) {
return;
}
if (!update_bounds()) {
push_changed(get_bounds());
}