Browse Source

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

Add `single`/`double` as export features automatically
Rémi Verschelde 1 year ago
parent
commit
285c917c4a
2 changed files with 12 additions and 0 deletions
  1. 6 0
      editor/export/editor_export_platform.cpp
  2. 6 0
      editor/export/project_export.cpp

+ 6 - 0
editor/export/editor_export_platform.cpp

@@ -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(",");
 

+ 6 - 0
editor/export/project_export.cpp

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