From c3d712f4147a7648f5bf0334705499a7d7433547 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 21 Sep 2019 16:36:30 +0100 Subject: [PATCH] Fix crash when reverting an exported array / dict to NULL --- editor/editor_properties_array_dict.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index ff19be8bd57..8abe91bdc1b 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -264,7 +264,9 @@ void EditorPropertyArray::update_property() { edit->set_text(String("(Nil) ") + arrtype); edit->set_pressed(false); if (vbox) { + set_bottom_editor(NULL); memdelete(vbox); + vbox = NULL; } return; } @@ -631,7 +633,9 @@ void EditorPropertyDictionary::update_property() { edit->set_text("Dictionary (Nil)"); //This provides symmetry with the array property. edit->set_pressed(false); if (vbox) { + set_bottom_editor(NULL); memdelete(vbox); + vbox = NULL; } return; }