Button object used after pressed is called

- by queueing for deletion node can call own cleanup methods

(cherry picked from commit c69ff6833c)
This commit is contained in:
Cameron Reikes 2019-08-08 19:34:23 -07:00 committed by Rémi Verschelde
parent 781006e25a
commit a5547ac3c7
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,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));
}
}