Merge pull request #84711 from mihe/double-export-feature

Add `single`/`double` as export features automatically
This commit is contained in:
Rémi Verschelde 2024-04-26 11:08:15 +02:00
commit 285c917c4a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 12 additions and 0 deletions

View File

@ -510,6 +510,12 @@ HashSet<String> EditorExportPlatform::get_features(const Ref<EditorExportPreset>
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<String> tmp_custom_list = p_preset->get_custom_features().split(",");

View File

@ -419,6 +419,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;