Skip to content

Commit

Permalink
Merge pull request #69569 from timothyqiu/tree-update-remove-child
Browse files Browse the repository at this point in the history
[3.x] Fix TreeItem.remove_child not updating Tree immediately
  • Loading branch information
akien-mga committed Dec 4, 2022
2 parents bf7f93d + 7bdbfbf commit 4b7b9b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scene/gui/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 4b7b9b7

Please sign in to comment.