Fix TreeItem.remove_child not updating Tree immediately

This commit is contained in:
Haoyu Qiu 2022-12-04 21:37:19 +08:00
parent 01574a566f
commit 7bdbfbf822

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