diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-24 23:34:58 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-24 23:34:58 +0200 |
commit | 810021c7cd47b09822e409594b51d39536d58352 (patch) | |
tree | b503690684d9c4e3fdc91739fca14904111468c9 | |
parent | 04317bc78435e35d95e1b2264913ff75fb49f2ff (diff) | |
parent | 6d9e4e970410c169e115916b1bf64088638955c7 (diff) | |
download | redot-engine-810021c7cd47b09822e409594b51d39536d58352.tar.gz |
Merge pull request #82181 from Chaosus/curve_fix_crash
Fix CurveEdit crash when dragging the curve if it is null
-rw-r--r-- | editor/plugins/curve_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp index 37f0ca449d..72f6784836 100644 --- a/editor/plugins/curve_editor_plugin.cpp +++ b/editor/plugins/curve_editor_plugin.cpp @@ -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()) { |