You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Fix TreeItem.remove_child not updating Tree immediately
(cherry picked from commit 7bdbfbf822)
This commit is contained in:
@@ -430,16 +430,16 @@ void TreeItem::remove_child(TreeItem *p_item) {
|
|||||||
*c = (*c)->next;
|
*c = (*c)->next;
|
||||||
|
|
||||||
aux->parent = nullptr;
|
aux->parent = nullptr;
|
||||||
|
|
||||||
|
if (tree) {
|
||||||
|
tree->update();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
c = &(*c)->next;
|
c = &(*c)->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tree) {
|
|
||||||
tree->update();
|
|
||||||
}
|
|
||||||
|
|
||||||
ERR_FAIL();
|
ERR_FAIL();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user