Redraw 2d viewport when guides are cleared
(cherry picked from commit 0c051f41b1
)
This commit is contained in:
parent
0cf5de8f19
commit
38c0ad7c6c
|
@ -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_do_method(root, "remove_meta", "_edit_vertical_guides_");
|
||||||
undo_redo->add_undo_method(root, "set_meta", "_edit_vertical_guides_", vguides);
|
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->add_undo_method(viewport, "queue_redraw");
|
||||||
undo_redo->commit_action();
|
undo_redo->commit_action();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue