mirror of
https://github.com/godotengine/godot.git
synced 2025-01-06 17:37:18 +08:00
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:
commit
2e509f426a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user