Skip to content

Commit

Permalink
Merge pull request #82181 from Chaosus/curve_fix_crash
Browse files Browse the repository at this point in the history
Fix CurveEdit crash when dragging the curve if it is null
  • Loading branch information
akien-mga committed Sep 24, 2023
2 parents 04317bc + 6d9e4e9 commit 810021c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/plugins/curve_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ void CurveEdit::_notification(int p_what) {

void CurveEdit::gui_input(const Ref<InputEvent> &p_event) {
ERR_FAIL_COND(p_event.is_null());
if (curve.is_null()) {
return;
}

Ref<InputEventKey> k = p_event;
if (k.is_valid()) {
Expand Down

0 comments on commit 810021c

Please sign in to comment.