You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user