From 38c0ad7c6c6b70f1ecac0a7962a60c3105b3d8e8 Mon Sep 17 00:00:00 2001 From: the-sink Date: Mon, 27 Feb 2023 09:03:56 -0800 Subject: Redraw 2d viewport when guides are cleared (cherry picked from commit 0c051f41b16af834ad8b1fb46682aeef16fc88d6) --- editor/plugins/canvas_item_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/canvas_item_editor_plugin.cpp') diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 75a444c877..fd44e9221e 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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_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(); } -- cgit v1.2.3