diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-09 10:10:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 10:10:11 +0200 |
commit | 76d1183178d4464c586d3a12a3689203799ad3a6 (patch) | |
tree | a6d6b54fb7c35f65f838eb448d9eaf440a8f791f /editor | |
parent | 24a6b3f382b994903c0c301e87a55fe1fa042e98 (diff) | |
parent | c69ff6833c4bd6b42b9cad70928544fc6b7cbfc4 (diff) |
Merge pull request #31223 from creikey/fix-csg-crash
Button object used after pressed is called
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_properties_array_dict.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index 203136a3f8..d1371a04b1 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -312,7 +312,8 @@ void EditorPropertyArray::update_property() { } else { //bye bye children of the box while (vbox->get_child_count() > 2) { - memdelete(vbox->get_child(2)); + vbox->get_child(2)->queue_delete(); // button still needed after pressed is called + vbox->remove_child(vbox->get_child(2)); } } |