Fixes setting top_level not updating the global position
(cherry picked from commit 131a7b58c8
)
This commit is contained in:
parent
3f81cd5332
commit
638e24684f
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue