From 131a7b58c85971843f1c366292a33e30be91eb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gilles=20Roudi=C3=A8re?= Date: Tue, 27 Oct 2020 13:44:35 +0100 Subject: [PATCH] Fixes setting top_level not updating the global position --- scene/main/canvas_item.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp index c9a83f98a0f..6323b553783 100644 --- a/scene/main/canvas_item.cpp +++ b/scene/main/canvas_item.cpp @@ -686,6 +686,8 @@ void CanvasItem::set_as_top_level(bool p_top_level) { _exit_canvas(); top_level = p_top_level; _enter_canvas(); + + _notify_transform(); } bool CanvasItem::is_set_as_top_level() const {