Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

set the display scale to 'Custom' when custom display scale changed

D4r3N24349dd8e67f
diff --git a/editor/settings/editor_settings_dialog.cpp b/editor/settings/editor_settings_dialog.cpp
index 56fcbcb6a7a..5d640b75944 100644
--- a/editor/settings/editor_settings_dialog.cpp
+++ b/editor/settings/editor_settings_dialog.cpp
@@ -93,6 +93,9 @@ void EditorSettingsDialog::_settings_property_edited() {
} else if (full_name == "editors/3d/navigation/navigation_scheme") {
update_3d_navigation_preset();
_update_shortcuts();
+ } else if (full_name == "interface/editor/appearance/custom_display_scale") {
+ // The "Custom" display scale is index 7 in the setting's enum hint.
+ EditorSettings::get_singleton()->set_manually("interface/editor/appearance/display_scale", 7);
}
}