summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-05 21:38:59 +0100
committerGitHub <noreply@github.com>2019-12-05 21:38:59 +0100
commite9eea4f3ce5447fca68d60e520f925f2af94217c (patch)
tree689102e4bfe0aa993d4e33669ce8dfcfacb2b6d0
parentce02725cc124bccc3ee44ddb0c28f2b968f48ba5 (diff)
parent83194f4a508aa4910b40250e7c59272302eed308 (diff)
Merge pull request #34114 from simpuid/clear-guides-meta
changed set_meta to remove_meta in CLEAR_GUIDES menu option
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index 3dffbf5f9b..e44e6913d6 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");