mirror of https://github.com/godotengine/godot
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:
parent
db66bd35af
commit
e5ff64d08f
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue