From 5269b803e5820730d4d76cd96b01a61fa5a64e59 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 10 Aug 2021 15:05:36 +0200 Subject: [PATCH] Fix crash in EditorPropertyArray (cherry picked from commit d80a2a89f07dfddc734c18ac8f565b968eb789c8) --- editor/editor_properties_array_dict.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index 653465f8e..c81252723 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -712,6 +712,8 @@ void EditorPropertyArray::_reorder_button_up() { reorder_mouse_y_delta = 0.0f; Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE); + + ERR_FAIL_NULL(reorder_selected_button); reorder_selected_button->warp_mouse(reorder_selected_button->get_size() / 2.0f); reorder_selected_element_hbox = nullptr;