summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-05-13 12:58:40 +0200
committerGitHub <noreply@github.com>2020-05-13 12:58:40 +0200
commit1c18be1cc9ee95f80435c761ea8c1574503ac5c3 (patch)
tree113585b9dc435deee9a4a0e3842111988c5ab76f
parentaebe0364590a15a11a6bb753f058449d9697dd89 (diff)
parent2962819d1c4e3a3835647015904e07c93ecfc370 (diff)
downloadredot-engine-1c18be1cc9ee95f80435c761ea8c1574503ac5c3.tar.gz
Merge pull request #38637 from Calinou/editor-rename-revert-scene-bind
Rename the editor action "Revert Scene" to "Reload Saved Scene"
-rw-r--r--editor/editor_node.cpp9
-rw-r--r--editor/editor_node.h2
2 files changed, 6 insertions, 5 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index abb639254a..42eef2d130 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2412,7 +2412,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
}
} break;
- case EDIT_REVERT: {
+ case EDIT_RELOAD_SAVED_SCENE: {
Node *scene = get_edited_scene();
@@ -2427,8 +2427,9 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
}
if (unsaved_cache && !p_confirmed) {
- confirmation->get_ok()->set_text(TTR("Revert"));
- confirmation->set_text(TTR("This action cannot be undone. Revert anyway?"));
+ confirmation->get_ok()->set_text(TTR("Reload Saved Scene"));
+ confirmation->set_text(
+ TTR("The current scene has unsaved changes.\nReload the saved scene anyway? This action cannot be undone."));
confirmation->popup_centered();
break;
}
@@ -6169,7 +6170,7 @@ EditorNode::EditorNode() {
p->add_shortcut(ED_SHORTCUT("editor/redo", TTR("Redo"), KEY_MASK_CMD + KEY_MASK_SHIFT + KEY_Z), EDIT_REDO, true);
p->add_separator();
- p->add_shortcut(ED_SHORTCUT("editor/revert_scene", TTR("Revert Scene")), EDIT_REVERT);
+ p->add_shortcut(ED_SHORTCUT("editor/reload_saved_scene", TTR("Reload Saved Scene")), EDIT_RELOAD_SAVED_SCENE);
p->add_shortcut(ED_SHORTCUT("editor/close_scene", TTR("Close Scene"), KEY_MASK_CMD + KEY_MASK_SHIFT + KEY_W), FILE_CLOSE);
recent_scenes = memnew(PopupMenu);
diff --git a/editor/editor_node.h b/editor/editor_node.h
index 11f4008936..b39a3bbfd0 100644
--- a/editor/editor_node.h
+++ b/editor/editor_node.h
@@ -153,7 +153,7 @@ private:
FILE_EXTERNAL_OPEN_SCENE,
EDIT_UNDO,
EDIT_REDO,
- EDIT_REVERT,
+ EDIT_RELOAD_SAVED_SCENE,
TOOLS_ORPHAN_RESOURCES,
TOOLS_CUSTOM,
RESOURCE_SAVE,