Fixes global transform being wrong on entering tree
(cherry picked from commit 0a726d692a
)
This commit is contained in:
parent
209aa9821a
commit
032d96042d
|
@ -315,6 +315,7 @@ void CanvasItem::_notification(int p_what) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_set_global_invalid(true);
|
||||||
_enter_canvas();
|
_enter_canvas();
|
||||||
|
|
||||||
RenderingServer::get_singleton()->canvas_item_set_visible(canvas_item, is_visible_in_tree()); // The visibility of the parent may change.
|
RenderingServer::get_singleton()->canvas_item_set_visible(canvas_item, is_visible_in_tree()); // The visibility of the parent may change.
|
||||||
|
|
Loading…
Reference in New Issue