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
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue