From 1bb2905fbde64b198c0f780259a2f74a2deaf251 Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Fri, 10 Nov 2023 13:35:03 +0100 Subject: [PATCH] Add `single`/`double` as export features automatically --- editor/export/editor_export_platform.cpp | 6 ++++++ editor/export/project_export.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index c492589e63d..70a0eb864d3 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -481,6 +481,12 @@ HashSet EditorExportPlatform::get_features(const Ref result.insert("template_release"); } +#ifdef REAL_T_IS_DOUBLE + result.insert("double"); +#else + result.insert("single"); +#endif // REAL_T_IS_DOUBLE + if (!p_preset->get_custom_features().is_empty()) { Vector tmp_custom_list = p_preset->get_custom_features().split(","); diff --git a/editor/export/project_export.cpp b/editor/export/project_export.cpp index 05f012e5fb0..efdf394b8c9 100644 --- a/editor/export/project_export.cpp +++ b/editor/export/project_export.cpp @@ -409,6 +409,12 @@ void ProjectExportDialog::_update_feature_list() { feature_set.insert(E); } +#ifdef REAL_T_IS_DOUBLE + feature_set.insert("double"); +#else + feature_set.insert("single"); +#endif // REAL_T_IS_DOUBLE + custom_feature_display->clear(); String text; bool first = true;