mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[3.x] Fix crashes when using _input functions
This commit is contained in:
parent
2d57df60f7
commit
06976c3e84
15 changed files with 18 additions and 1 deletions
|
|
@ -2654,6 +2654,8 @@ String AnimationTrackEdit::get_tooltip(const Point2 &p_pos) const {
|
|||
}
|
||||
|
||||
void AnimationTrackEdit::_gui_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
if (p_event->is_pressed()) {
|
||||
if (ED_GET_SHORTCUT("animation_editor/duplicate_selection")->is_shortcut(p_event)) {
|
||||
emit_signal("duplicate_request");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue