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:
commit
4b7b9b74bc
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue