mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 03:24:32 -05:00
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:
commit
e9eea4f3ce
1 changed files with 2 additions and 2 deletions
|
@ -4759,13 +4759,13 @@ void CanvasItemEditor::_popup_callback(int p_op) {
|
||||||
if (root->has_meta("_edit_horizontal_guides_")) {
|
if (root->has_meta("_edit_horizontal_guides_")) {
|
||||||
Array hguides = root->get_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);
|
undo_redo->add_undo_method(root, "set_meta", "_edit_horizontal_guides_", hguides);
|
||||||
}
|
}
|
||||||
if (root->has_meta("_edit_vertical_guides_")) {
|
if (root->has_meta("_edit_vertical_guides_")) {
|
||||||
Array vguides = root->get_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(root, "set_meta", "_edit_vertical_guides_", vguides);
|
||||||
}
|
}
|
||||||
undo_redo->add_undo_method(viewport, "update");
|
undo_redo->add_undo_method(viewport, "update");
|
||||||
|
|
Loading…
Add table
Reference in a new issue