Fixes global transform being wrong on entering tree

This commit is contained in:
Gilles Roudière 2024-01-05 16:55:16 +01:00
parent 89cc635c05
commit 0a726d692a

View File

@ -315,6 +315,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.