You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()
This commit is contained in:
@@ -2226,7 +2226,7 @@ void ThemeTypeEditor::_update_type_list() {
|
||||
}
|
||||
updating = true;
|
||||
|
||||
Control *focused = get_focus_owner();
|
||||
Control *focused = get_viewport()->gui_get_focus_owner();
|
||||
if (focused) {
|
||||
if (focusables.has(focused)) {
|
||||
// If focus is currently on one of the internal property editors, don't update.
|
||||
|
||||
Reference in New Issue
Block a user