summaryrefslogtreecommitdiffstats
path: root/editor/animation_track_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-02-03 13:35:19 +0100
committerGitHub <noreply@github.com>2022-02-03 13:35:19 +0100
commit7f93eb34cf4b4e900aa9ba185b009fcb409d5d1c (patch)
tree3d31386b4c8200d9882b639b98728588802e0b96 /editor/animation_track_editor.cpp
parente165f18ae532ddf118b19bdd439f4ac6c226903a (diff)
parent73e784de1e95cfdf775e00e608114f5295813060 (diff)
downloadredot-engine-7f93eb34cf4b4e900aa9ba185b009fcb409d5d1c.tar.gz
Merge pull request #57581 from groud/remove_get_fowus_owner
Diffstat (limited to 'editor/animation_track_editor.cpp')
-rw-r--r--editor/animation_track_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index 433866602b..e36d0b846b 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -3481,7 +3481,7 @@ void AnimationTrackEditor::_track_remove_request(int p_track) {
void AnimationTrackEditor::_track_grab_focus(int p_track) {
// Don't steal focus if not working with the track editor.
- if (Object::cast_to<AnimationTrackEdit>(get_focus_owner())) {
+ if (Object::cast_to<AnimationTrackEdit>(get_viewport()->gui_get_focus_owner())) {
track_edits[p_track]->grab_focus();
}
}