Remove duplicate orientation settings in the iOS export preset

The screen orientation is now sourced from the Project Settings
like it is done for Android already.
This commit is contained in:
Hugo Locurcio
2021-05-21 23:57:02 +02:00
parent 855406c882
commit 914b5dc525
6 changed files with 60 additions and 41 deletions

View File

@@ -855,7 +855,8 @@ class EditorExportPlatformAndroid : public EditorExportPlatform {
int version_code = p_preset->get("version/code");
String package_name = p_preset->get("package/unique_name");
const int screen_orientation = _get_android_orientation_value(_get_screen_orientation());
const int screen_orientation = _get_android_orientation_value(
OS::get_singleton()->get_screen_orientation_from_string(GLOBAL_GET("display/window/handheld/orientation")));
bool min_gles3 = ProjectSettings::get_singleton()->get("rendering/quality/driver/driver_name") == "GLES3" &&
!ProjectSettings::get_singleton()->get("rendering/quality/driver/fallback_to_gles2");