summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorthe-sink <lucianedean@gmail.com>2023-02-27 09:03:56 -0800
committerYuri Sizov <yuris@humnom.net>2023-03-14 13:59:05 +0100
commit38c0ad7c6c6b70f1ecac0a7962a60c3105b3d8e8 (patch)
tree23902b836784f4c823d69f200b6aa2c1cffbc9f6 /editor/plugins
parent0cf5de8f194b48f771c3ff3d44cb26fc83f220bb (diff)
Redraw 2d viewport when guides are cleared
(cherry picked from commit 0c051f41b16af834ad8b1fb46682aeef16fc88d6)
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}