Make the request to redraw when clearing guides a part of UndoRedo

This commit is contained in:
Yuri Sizov 2023-03-14 13:31:20 +01:00
parent 79454bfd3b
commit c5977064a3

View file

@ -4556,9 +4556,9 @@ 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();
viewport->queue_redraw();
} }
} break; } break;