diff options
author | Cameron Reikes <cameronreikes@gmail.com> | 2019-08-08 19:34:23 -0700 |
---|---|---|
committer | Cameron Reikes <cameronreikes@gmail.com> | 2019-08-08 19:34:23 -0700 |
commit | c69ff6833c4bd6b42b9cad70928544fc6b7cbfc4 (patch) | |
tree | fcadfdd4a4664971613f3aa0b814a7f96312082f /editor | |
parent | fe3cd5175589c27c3564224b317bbc0177a5a735 (diff) |
Button object used after pressed is called
- by queueing for deletion node can call own cleanup methods
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)); } } |