mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 05:19:50 +01:00
Fix TreeItem.remove_child not updating Tree immediately
This commit is contained in:
parent
c8a090fa42
commit
0a11c9e1bf
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user