@@ -713,9 +713,9 @@ Error Main::test_setup() {
713
713
714
714
/* * INITIALIZE SERVERS **/
715
715
register_server_types ();
716
- #ifndef _3D_DISABLED
716
+ #ifndef XR_DISABLED
717
717
XRServer::set_xr_mode (XRServer::XRMODE_OFF); // Skip in tests.
718
- #endif // _3D_DISABLED
718
+ #endif // XR_DISABLED
719
719
initialize_modules (MODULE_INITIALIZATION_LEVEL_SERVERS);
720
720
GDExtensionManager::get_singleton ()->initialize_extensions (GDExtension::INITIALIZATION_LEVEL_SERVERS);
721
721
@@ -1734,7 +1734,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
1734
1734
OS::get_singleton ()->disable_crash_handler ();
1735
1735
} else if (arg == " --skip-breakpoints" ) {
1736
1736
skip_breakpoints = true ;
1737
- #ifndef _3D_DISABLED
1737
+ #ifndef XR_DISABLED
1738
1738
} else if (arg == " --xr-mode" ) {
1739
1739
if (N) {
1740
1740
String xr_mode = N->get ().to_lower ();
@@ -1753,7 +1753,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
1753
1753
OS::get_singleton ()->print (" Missing --xr-mode argument, aborting.\n " );
1754
1754
goto error;
1755
1755
}
1756
- #endif // _3D_DISABLED
1756
+ #endif // XR_DISABLED
1757
1757
} else if (arg == " --benchmark" ) {
1758
1758
OS::get_singleton ()->set_use_benchmark (true );
1759
1759
} else if (arg == " --benchmark-file" ) {
@@ -3196,7 +3196,7 @@ Error Main::setup2(bool p_show_boot_logo) {
3196
3196
OS::get_singleton ()->benchmark_end_measure (" Servers" , " Audio" );
3197
3197
}
3198
3198
3199
- #ifndef _3D_DISABLED
3199
+ #ifndef XR_DISABLED
3200
3200
/* Initialize XR Server */
3201
3201
3202
3202
{
@@ -3206,7 +3206,7 @@ Error Main::setup2(bool p_show_boot_logo) {
3206
3206
3207
3207
OS::get_singleton ()->benchmark_end_measure (" Servers" , " XR" );
3208
3208
}
3209
- #endif // _3D_DISABLED
3209
+ #endif // XR_DISABLED
3210
3210
3211
3211
OS::get_singleton ()->benchmark_end_measure (" Startup" , " Servers" );
3212
3212
@@ -4429,9 +4429,9 @@ bool Main::iteration() {
4429
4429
bool exit = false ;
4430
4430
4431
4431
// process all our active interfaces
4432
- #ifndef _3D_DISABLED
4432
+ #ifndef XR_DISABLED
4433
4433
XRServer::get_singleton ()->_process ();
4434
- #endif // _3D_DISABLED
4434
+ #endif // XR_DISABLED
4435
4435
4436
4436
NavigationServer2D::get_singleton ()->sync ();
4437
4437
NavigationServer3D::get_singleton ()->sync ();
@@ -4685,13 +4685,13 @@ void Main::cleanup(bool p_force) {
4685
4685
// clear global shader variables before scene and other graphics stuff are deinitialized.
4686
4686
rendering_server->global_shader_parameters_clear ();
4687
4687
4688
- #ifndef _3D_DISABLED
4688
+ #ifndef XR_DISABLED
4689
4689
if (xr_server) {
4690
4690
// Now that we're unregistering properly in plugins we need to keep access to xr_server for a little longer
4691
4691
// We do however unset our primary interface
4692
4692
xr_server->set_primary_interface (Ref<XRInterface>());
4693
4693
}
4694
- #endif // _3D_DISABLED
4694
+ #endif // XR_DISABLED
4695
4695
4696
4696
#ifdef TOOLS_ENABLED
4697
4697
GDExtensionManager::get_singleton ()->deinitialize_extensions (GDExtension::INITIALIZATION_LEVEL_EDITOR);
0 commit comments