From 3bed6b1cb0718c44530edc4f4f738f4acbc48f56 Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov Date: Thu, 18 Jan 2024 11:18:14 -0500 Subject: [PATCH] Update the viewport if CanvasItem top level is changed --- editor/plugins/canvas_item_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 3722d6bebabb..30e0dc95c734 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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();