Merge pull request #31223 from creikey/fix-csg-crash

Button object used after pressed is called
This commit is contained in:
Rémi Verschelde 2019-08-09 10:10:11 +02:00 committed by GitHub
commit 76d1183178
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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