Skip to content

Commit

Permalink
Merge pull request #87343 from ryevdokimov/fix-2d-top-level-2
Browse files Browse the repository at this point in the history
Update the viewport if CanvasItem top level is changed
  • Loading branch information
YuriSizov committed Jan 22, 2024
2 parents 3755b72 + 3bed6b1 commit 8f51117
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 8f51117

Please sign in to comment.