1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Merge pull request #82181 from Chaosus/curve_fix_crash

Fix CurveEdit crash when dragging the curve if it is null
This commit is contained in:
Rémi Verschelde
2023-09-24 23:34:58 +02:00

View File

@@ -140,6 +140,9 @@ void CurveEdit::_notification(int p_what) {
void CurveEdit::gui_input(const Ref<InputEvent> &p_event) { void CurveEdit::gui_input(const Ref<InputEvent> &p_event) {
ERR_FAIL_COND(p_event.is_null()); ERR_FAIL_COND(p_event.is_null());
if (curve.is_null()) {
return;
}
Ref<InputEventKey> k = p_event; Ref<InputEventKey> k = p_event;
if (k.is_valid()) { if (k.is_valid()) {