Merge pull request #69538 from mihe/feature-tag-double

Add feature tags to signify engine float precision
This commit is contained in:
Rémi Verschelde 2022-12-11 11:51:59 +01:00
commit e7d892159c
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 12 additions and 0 deletions

View File

@ -374,6 +374,16 @@ bool OS::has_feature(const String &p_feature) {
#endif // DEBUG_ENABLED
#endif // TOOLS_ENABLED
#ifdef REAL_T_IS_DOUBLE
if (p_feature == "double") {
return true;
}
#else
if (p_feature == "single") {
return true;
}
#endif // REAL_T_IS_DOUBLE
if (sizeof(void *) == 8 && p_feature == "64") {
return true;
}

View File

@ -280,6 +280,8 @@ void ProjectSettingsEditor::_add_feature_overrides() {
presets.insert("debug");
presets.insert("release");
presets.insert("template");
presets.insert("double");
presets.insert("single");
presets.insert("32");
presets.insert("64");
presets.insert("movie");