Fixes setting top_level not updating the global position

This commit is contained in:
Gilles Roudière 2020-10-27 13:44:35 +01:00
parent 5479a6946b
commit 131a7b58c8

View File

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