mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Prevent animation player crash
This commit is contained in:
parent
db913cb9b8
commit
b75ad7b6b0
@ -4116,7 +4116,7 @@ void AnimationTrackEditor::_scroll_input(const Ref<InputEvent> &p_event) {
|
||||
track_edits[i]->append_to_selection(local_rect);
|
||||
}
|
||||
|
||||
if (_get_track_selected() == -1) { //minimal hack to make shortcuts work
|
||||
if (_get_track_selected() == -1 && track_edits.size() > 0) { //minimal hack to make shortcuts work
|
||||
track_edits[track_edits.size() - 1]->grab_focus();
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user