diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-04-05 11:54:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 11:54:08 +0200 |
| commit | 77dc4c3cb6b59e826699c1590bc26b071e868216 (patch) | |
| tree | 5ba2509b65b1a9e48d916616e08c593688ee5a14 /editor/animation_bezier_editor.cpp | |
| parent | 789646e2010632908b0569c64190b1b37e033cb8 (diff) | |
| parent | 504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1 (diff) | |
Merge pull request #47636 from qarmin/input
Fix crashes in *_input functions
Diffstat (limited to 'editor/animation_bezier_editor.cpp')
| -rw-r--r-- | editor/animation_bezier_editor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index 92b4683018..ab8ae71904 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -602,6 +602,8 @@ void AnimationBezierTrackEdit::_select_at_anim(const Ref<Animation> &p_anim, int } void AnimationBezierTrackEdit::_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)) { duplicate_selection(); |