Merge pull request #117754 from allenwp/renderer_selector_editor_setting

Hide renderer selector in main editor window and add editor setting
This commit is contained in:
Thaddeus Crews
2026-04-07 06:44:44 -05:00
3 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -1155,6 +1155,7 @@ void EditorNode::_notification(int p_what) {
if (EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/appearance")) {
_update_update_spinner();
_update_main_menu_type();
renderer->set_visible(EDITOR_GET("interface/editor/appearance/show_renderer_selector"));
}
if (EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/display")) {
_update_vsync_mode();
@@ -9041,7 +9042,6 @@ EditorNode::EditorNode() {
title_bar->add_child(right_menu_hb);
renderer = memnew(OptionButton);
renderer->set_visible(true);
renderer->set_flat(true);
renderer->set_theme_type_variation("TopBarOptionButton");
renderer->set_fit_to_longest_item(false);
@@ -9087,6 +9087,8 @@ EditorNode::EditorNode() {
}
_update_renderer_color();
renderer->set_visible(EDITOR_GET("interface/editor/appearance/show_renderer_selector"));
progress_hb = memnew(BackgroundProgress);
layout_dialog = memnew(EditorLayoutsDialog);