Fix TreeItem.remove_child not updating Tree immediately
(cherry picked from commit 7bdbfbf822
)
This commit is contained in:
parent
3f3597ac0d
commit
056e99ad6e
@ -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 New Issue
Block a user