Merge pull request #86841 from groud/fix_global_transform_in_enter_tree

Fixes global transform being wrong on entering tree
This commit is contained in:
Yuri Sizov 2024-01-17 18:52:59 +01:00
commit 0724506cdd
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ void CanvasItem::_notification(int p_what) {
}
}
_set_global_invalid(true);
_enter_canvas();
RenderingServer::get_singleton()->canvas_item_set_visible(canvas_item, is_visible_in_tree()); // The visibility of the parent may change.