Skip to content

Commit

Permalink
Merge pull request #74904 from YuriSizov/canvas-item-editor-undraw-re…
Browse files Browse the repository at this point in the history
…draw

Make the request to redraw when clearing guides a part of UndoRedo
  • Loading branch information
YuriSizov authored Mar 15, 2023
2 parents d44d9b5 + c597706 commit 2e509f4
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 @@ -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;
Expand Down

0 comments on commit 2e509f4

Please sign in to comment.