Merge pull request #74904 from YuriSizov/canvas-item-editor-undraw-redraw

Make the request to redraw when clearing guides a part of UndoRedo
This commit is contained in:
Yuri Sizov 2023-03-15 13:31:18 +01:00 committed by GitHub
commit 2e509f426a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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_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->commit_action();
viewport->queue_redraw();
}
} break;