Merge pull request #34114 from simpuid/clear-guides-meta

changed set_meta to remove_meta in CLEAR_GUIDES menu option
This commit is contained in:
Rémi Verschelde 2019-12-05 21:38:59 +01:00 committed by GitHub
commit e9eea4f3ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4759,13 +4759,13 @@ void CanvasItemEditor::_popup_callback(int p_op) {
if (root->has_meta("_edit_horizontal_guides_")) {
Array hguides = root->get_meta("_edit_horizontal_guides_");
undo_redo->add_do_method(root, "set_meta", "_edit_horizontal_guides_", Array());
undo_redo->add_do_method(root, "remove_meta", "_edit_horizontal_guides_");
undo_redo->add_undo_method(root, "set_meta", "_edit_horizontal_guides_", hguides);
}
if (root->has_meta("_edit_vertical_guides_")) {
Array vguides = root->get_meta("_edit_vertical_guides_");
undo_redo->add_do_method(root, "set_meta", "_edit_vertical_guides_", Array());
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(viewport, "update");