Update the viewport if CanvasItem top level is changed

This commit is contained in:
Robert Yevdokimov 2024-01-18 11:18:14 -05:00
parent b6577ec5c7
commit 3bed6b1cb0

View file

@ -3933,7 +3933,7 @@ void CanvasItemEditor::_notification(int p_what) {
} else {
rect = Rect2();
}
Transform2D xform = ci->get_transform();
Transform2D xform = ci->get_global_transform();
if (rect != se->prev_rect || xform != se->prev_xform) {
viewport->queue_redraw();