Merge pull request #43131 from groud/fix_global_pos_set_as_toplevel
Fixes setting top_level not updating the global position
This commit is contained in:
commit
67f64ef4fe
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue