Skip to content

Commit f298aaa

Browse files
committed
Fix unexpected auto-translation of more editor components
1 parent d2f9245 commit f298aaa

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

editor/connections_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
#include "scene/gui/option_button.h"
5151
#include "scene/gui/popup_menu.h"
5252
#include "scene/gui/spin_box.h"
53-
#include "scene/resources/packed_scene.h"
5453

5554
static Node *_find_first_script(Node *p_root, Node *p_node) {
5655
if (p_node != p_root && p_node->get_owner() != p_root) {
@@ -1562,6 +1561,7 @@ ConnectionsDock::ConnectionsDock() {
15621561
vbc->add_child(search_box);
15631562

15641563
tree = memnew(ConnectionsDockTree);
1564+
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
15651565
tree->set_columns(1);
15661566
tree->set_select_mode(Tree::SELECT_ROW);
15671567
tree->set_hide_root(true);

editor/debugger/editor_debugger_tree.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
EditorDebuggerTree::EditorDebuggerTree() {
4242
set_v_size_flags(SIZE_EXPAND_FILL);
4343
set_allow_rmb_select(true);
44+
set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
4445

4546
// Popup
4647
item_menu = memnew(PopupMenu);

editor/group_settings_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "group_settings_editor.h"
3232

3333
#include "core/config/project_settings.h"
34-
#include "editor/editor_file_system.h"
3534
#include "editor/editor_node.h"
3635
#include "editor/editor_undo_redo_manager.h"
3736
#include "editor/filesystem_dock.h"
@@ -521,6 +520,7 @@ GroupSettingsEditor::GroupSettingsEditor() {
521520
hbc->add_child(add_button);
522521

523522
tree = memnew(Tree);
523+
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
524524
tree->set_hide_root(true);
525525
tree->set_select_mode(Tree::SELECT_SINGLE);
526526
tree->set_allow_reselect(true);

editor/gui/scene_tree_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include "editor/themes/editor_scale.h"
4646
#include "scene/gui/flow_container.h"
4747
#include "scene/gui/label.h"
48-
#include "scene/gui/tab_container.h"
4948
#include "scene/gui/texture_rect.h"
5049
#include "scene/main/window.h"
5150
#include "scene/resources/packed_scene.h"
@@ -1513,6 +1512,7 @@ SceneTreeEditor::SceneTreeEditor(bool p_label, bool p_can_rename, bool p_can_ope
15131512
}
15141513

15151514
tree = memnew(Tree);
1515+
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
15161516
tree->set_anchor(SIDE_RIGHT, ANCHOR_END);
15171517
tree->set_anchor(SIDE_BOTTOM, ANCHOR_END);
15181518
tree->set_begin(Point2(0, p_label ? 18 : 0));

editor/inspector_dock.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
702702
forward_button->connect("pressed", callable_mp(this, &InspectorDock::_edit_forward));
703703

704704
history_menu = memnew(MenuButton);
705+
history_menu->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
705706
history_menu->set_flat(false);
706707
history_menu->set_theme_type_variation("FlatMenuButton");
707708
history_menu->set_tooltip_text(TTR("History of recently edited objects."));

editor/plugins/animation_tree_editor_plugin.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,15 @@
3434
#include "animation_blend_space_2d_editor.h"
3535
#include "animation_blend_tree_editor_plugin.h"
3636
#include "animation_state_machine_editor.h"
37-
#include "core/config/project_settings.h"
38-
#include "core/input/input.h"
39-
#include "core/io/resource_loader.h"
40-
#include "core/math/delaunay_2d.h"
41-
#include "core/os/keyboard.h"
4237
#include "editor/editor_command_palette.h"
4338
#include "editor/editor_node.h"
4439
#include "editor/gui/editor_bottom_panel.h"
45-
#include "editor/gui/editor_file_dialog.h"
4640
#include "editor/themes/editor_scale.h"
4741
#include "scene/animation/animation_blend_tree.h"
48-
#include "scene/animation/animation_player.h"
4942
#include "scene/gui/button.h"
5043
#include "scene/gui/margin_container.h"
51-
#include "scene/gui/menu_button.h"
52-
#include "scene/gui/panel.h"
5344
#include "scene/gui/scroll_container.h"
5445
#include "scene/gui/separator.h"
55-
#include "scene/main/window.h"
5646
#include "scene/scene_string_names.h"
5747

5848
void AnimationTreeEditor::edit(AnimationTree *p_tree) {
@@ -115,6 +105,7 @@ void AnimationTreeEditor::_update_path() {
115105
path_hb->add_child(b);
116106
for (int i = 0; i < button_path.size(); i++) {
117107
b = memnew(Button);
108+
b->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
118109
b->set_text(button_path[i]);
119110
b->set_toggle_mode(true);
120111
b->set_button_group(group);

0 commit comments

Comments
 (0)