mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 04:33:29 +00:00
Fix TreeItem.remove_child not updating Tree immediately
This commit is contained in:
parent
01574a566f
commit
7bdbfbf822
@ -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