Fix TreeItem.remove_child not updating Tree immediately

This commit is contained in:
Haoyu Qiu 2022-12-04 21:37:19 +08:00 committed by Relintai
parent c8a090fa42
commit 0a11c9e1bf

View File

@ -436,16 +436,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();
}