Skip to content

Commit

Permalink
Update the viewport if CanvasItem top level is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ryevdokimov committed Jan 22, 2024
1 parent b6577ec commit 3bed6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3bed6b1

Please sign in to comment.