You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add double to the version full build string when using a double-precision build
This means that `double` is now visible in the command line startup version, project manager, editor About dialog and at the bottom of the editor. This is because double-precision mode has a significant impact on how the editor and projects run. Similar to `mono` for C# builds, this affects which export templates the editor looks for, since it needs a different set of export templates. The export templates manager now indicates that no official double-precision export template downloads are currently available (although the `dev` status message takes priority over it).
This commit is contained in:
@@ -53,6 +53,7 @@ enum DownloadsAvailability {
|
||||
DOWNLOADS_AVAILABLE,
|
||||
DOWNLOADS_NOT_AVAILABLE_IN_OFFLINE_MODE,
|
||||
DOWNLOADS_NOT_AVAILABLE_FOR_DEV_BUILDS,
|
||||
DOWNLOADS_NOT_AVAILABLE_FOR_DOUBLE_BUILDS,
|
||||
};
|
||||
|
||||
static DownloadsAvailability _get_downloads_availability() {
|
||||
@@ -69,6 +70,10 @@ static DownloadsAvailability _get_downloads_availability() {
|
||||
return DOWNLOADS_NOT_AVAILABLE_FOR_DEV_BUILDS;
|
||||
}
|
||||
|
||||
#ifdef REAL_T_IS_DOUBLE
|
||||
return DOWNLOADS_NOT_AVAILABLE_FOR_DOUBLE_BUILDS;
|
||||
#endif
|
||||
|
||||
if (network_mode == EditorSettings::NETWORK_OFFLINE) {
|
||||
return DOWNLOADS_NOT_AVAILABLE_IN_OFFLINE_MODE;
|
||||
}
|
||||
@@ -739,6 +744,20 @@ void ExportTemplateManager::popup_manager() {
|
||||
|
||||
enable_online_hb->hide();
|
||||
} break;
|
||||
|
||||
case DOWNLOADS_NOT_AVAILABLE_FOR_DOUBLE_BUILDS: {
|
||||
current_missing_label->set_text(TTR("Export templates are missing. Install them from a file."));
|
||||
|
||||
mirrors_list->clear();
|
||||
mirrors_list->add_item(TTR("No templates for double-precision builds"), 0);
|
||||
mirrors_list->set_disabled(true);
|
||||
mirrors_list->set_tooltip_text(TTR("Official export templates aren't available for double-precision builds."));
|
||||
|
||||
mirror_options_button->set_disabled(true);
|
||||
|
||||
download_current_button->set_disabled(true);
|
||||
download_current_button->set_tooltip_text(TTR("Official export templates aren't available for double-precision builds."));
|
||||
}
|
||||
}
|
||||
|
||||
popup_centered(Size2(720, 280) * EDSCALE);
|
||||
|
||||
Reference in New Issue
Block a user