From 6d9e4e970410c169e115916b1bf64088638955c7 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Sat, 23 Sep 2023 11:44:54 +0300 Subject: [PATCH] Fix CurveEdit crash when dragging the curve if it is null --- editor/plugins/curve_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp index 37f0ca449d7..72f67848365 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 &p_event) { ERR_FAIL_COND(p_event.is_null()); + if (curve.is_null()) { + return; + } Ref k = p_event; if (k.is_valid()) {