From 638e24684f0acf2c3b5b0969ba50aea0e3f41198 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 (cherry picked from commit 131a7b58c85971843f1c366292a33e30be91eb66) --- scene/2d/canvas_item.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp index 5631aa33550..d71a4af04da 100644 --- a/scene/2d/canvas_item.cpp +++ b/scene/2d/canvas_item.cpp @@ -668,6 +668,8 @@ void CanvasItem::set_as_toplevel(bool p_toplevel) { _exit_canvas(); toplevel = p_toplevel; _enter_canvas(); + + _notify_transform(); } bool CanvasItem::is_set_as_toplevel() const {