Fixes setting top_level not updating the global position

(cherry picked from commit 131a7b58c8)
This commit is contained in:
Gilles Roudière 2020-10-27 13:44:35 +01:00 committed by Rémi Verschelde
parent 3f81cd5332
commit 638e24684f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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 {