Add single/double as export features automatically

This commit is contained in:
Mikael Hermansson 2023-11-10 13:35:03 +01:00
parent 2b987d1c54
commit 1bb2905fbd
2 changed files with 12 additions and 0 deletions

View File

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

@ -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;