Merge pull request #69569 from timothyqiu/tree-update-remove-child

[3.x] Fix TreeItem.remove_child not updating Tree immediately
This commit is contained in:
Rémi Verschelde 2022-12-05 00:13:37 +01:00
commit 4b7b9b74bc
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -430,16 +430,16 @@ void TreeItem::remove_child(TreeItem *p_item) {
*c = (*c)->next;
aux->parent = nullptr;
if (tree) {
tree->update();
}
return;
}
c = &(*c)->next;
}
if (tree) {
tree->update();
}
ERR_FAIL();
}