mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #97442 from dustdfg/disable_xr/missing_disable_3d_ifndefs
Add missing `#ifndef _3D_DISABLED` to main file
This commit is contained in:
commit
dbf1efbd19
@ -612,7 +612,9 @@ void Main::print_help(const char *p_binary) {
|
|||||||
print_help_option("--position <X>,<Y>", "Request window position.\n");
|
print_help_option("--position <X>,<Y>", "Request window position.\n");
|
||||||
print_help_option("--screen <N>", "Request window screen.\n");
|
print_help_option("--screen <N>", "Request window screen.\n");
|
||||||
print_help_option("--single-window", "Use a single window (no separate subwindows).\n");
|
print_help_option("--single-window", "Use a single window (no separate subwindows).\n");
|
||||||
|
#ifndef _3D_DISABLED
|
||||||
print_help_option("--xr-mode <mode>", "Select XR (Extended Reality) mode [\"default\", \"off\", \"on\"].\n");
|
print_help_option("--xr-mode <mode>", "Select XR (Extended Reality) mode [\"default\", \"off\", \"on\"].\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
print_help_title("Debug options");
|
print_help_title("Debug options");
|
||||||
print_help_option("-d, --debug", "Debug (local stdout debugger).\n");
|
print_help_option("-d, --debug", "Debug (local stdout debugger).\n");
|
||||||
@ -2571,6 +2573,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||||||
GLOBAL_DEF("display/window/ios/hide_status_bar", true);
|
GLOBAL_DEF("display/window/ios/hide_status_bar", true);
|
||||||
GLOBAL_DEF("display/window/ios/suppress_ui_gesture", true);
|
GLOBAL_DEF("display/window/ios/suppress_ui_gesture", true);
|
||||||
|
|
||||||
|
#ifndef _3D_DISABLED
|
||||||
// XR project settings.
|
// XR project settings.
|
||||||
GLOBAL_DEF_RST_BASIC("xr/openxr/enabled", false);
|
GLOBAL_DEF_RST_BASIC("xr/openxr/enabled", false);
|
||||||
GLOBAL_DEF_BASIC(PropertyInfo(Variant::STRING, "xr/openxr/default_action_map", PROPERTY_HINT_FILE, "*.tres"), "res://openxr_action_map.tres");
|
GLOBAL_DEF_BASIC(PropertyInfo(Variant::STRING, "xr/openxr/default_action_map", PROPERTY_HINT_FILE, "*.tres"), "res://openxr_action_map.tres");
|
||||||
@ -2599,7 +2602,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||||||
// editor settings (it seems we're too early in the process when setting up rendering, to access editor settings...)
|
// editor settings (it seems we're too early in the process when setting up rendering, to access editor settings...)
|
||||||
// EDITOR_DEF_RST("xr/openxr/in_editor", false);
|
// EDITOR_DEF_RST("xr/openxr/in_editor", false);
|
||||||
// GLOBAL_DEF("xr/openxr/in_editor", false);
|
// GLOBAL_DEF("xr/openxr/in_editor", false);
|
||||||
#endif
|
#endif // TOOLS_ENABLED
|
||||||
|
#endif // _3D_DISABLED
|
||||||
|
|
||||||
Engine::get_singleton()->set_frame_delay(frame_delay);
|
Engine::get_singleton()->set_frame_delay(frame_delay);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user