From 83194f4a508aa4910b40250e7c59272302eed308 Mon Sep 17 00:00:00 2001 From: simpuid Date: Thu, 5 Dec 2019 02:46:22 +0530 Subject: [PATCH] changed set_meta to remove_meta in CLEAR_GUIDES menu option --- editor/plugins/canvas_item_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 3dffbf5f9be..e44e6913d66 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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");