Merge pull request #69538 from mihe/feature-tag-double
Add feature tags to signify engine float precision
This commit is contained in:
commit
e7d892159c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue