mirror of
https://github.com/godotengine/godot
synced 2024-09-05 16:20:30 +00:00
Add feature tags to signify engine float precision
This commit is contained in:
parent
a7937fe54c
commit
8c108177d7
|
@ -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 a new issue