Godot Engine – Multi-platform 2D and 3D game engine
Fix broken build when `deprecated` is disabled
Michael Alexsander64674e4827b2
diff --git a/editor/gui/editor_object_selector.cpp b/editor/gui/editor_object_selector.cppindex 8430336aff4..53e8cae20bd 100644--- a/editor/gui/editor_object_selector.cpp+++ b/editor/gui/editor_object_selector.cpp@@ -230,7 +230,6 @@ EditorObjectSelector::EditorObjectSelector(EditorSelectionHistory *p_history) {current_object_label->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);current_object_label->set_h_size_flags(SIZE_EXPAND_FILL);current_object_label->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);- current_object_label->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);main_hb->add_child(current_object_label);sub_objects_icon = memnew(TextureRect);@@ -240,10 +239,9 @@ EditorObjectSelector::EditorObjectSelector(EditorSelectionHistory *p_history) {sub_objects_menu = memnew(PopupMenu);sub_objects_menu->set_shrink_width(false);- sub_objects_menu->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);add_child(sub_objects_menu);sub_objects_menu->connect("about_to_popup", callable_mp(this, &EditorObjectSelector::_about_to_show));sub_objects_menu->connect(SceneStringName(id_pressed), callable_mp(this, &EditorObjectSelector::_id_pressed));- set_auto_translate(false);+ set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);}