Redraw 2d viewport when guides are cleared

(cherry picked from commit 0c051f41b1)
This commit is contained in:
the-sink 2023-02-27 09:03:56 -08:00 committed by Yuri Sizov
parent 0cf5de8f19
commit 38c0ad7c6c
1 changed files with 1 additions and 0 deletions

View File

@ -4556,6 +4556,7 @@ void CanvasItemEditor::_popup_callback(int p_op) {
undo_redo->add_do_method(root, "remove_meta", "_edit_vertical_guides_"); undo_redo->add_do_method(root, "remove_meta", "_edit_vertical_guides_");
undo_redo->add_undo_method(root, "set_meta", "_edit_vertical_guides_", vguides); undo_redo->add_undo_method(root, "set_meta", "_edit_vertical_guides_", vguides);
} }
undo_redo->add_do_method(viewport, "queue_redraw");
undo_redo->add_undo_method(viewport, "queue_redraw"); undo_redo->add_undo_method(viewport, "queue_redraw");
undo_redo->commit_action(); undo_redo->commit_action();
} }