1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

SceneImportSettings update_timer should be a oneshot.

SceneImportSettings uses a timer to debounce updates, but the
timer isnt a one shot.  This means after the first update is
scheduled, the dialog keeps re-rendering evne though no update
has been requested.
This commit is contained in:
Rob Blanckaert
2024-10-04 21:07:35 -07:00
parent db66bd35af
commit e5ff64d08f

View File

@@ -1917,6 +1917,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
update_view_timer = memnew(Timer);
update_view_timer->set_wait_time(0.2);
update_view_timer->set_one_shot(true);
update_view_timer->connect("timeout", callable_mp(this, &SceneImportSettingsDialog::_update_view_gizmos));
add_child(update_view_timer);
}