You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Enable XR play mode options in the regular editor
The feature is necessary for XR projects with regular scenes, or hybrid app projects.
This commit is contained in:
@@ -599,10 +599,9 @@ EditorRunBar::EditorRunBar() {
|
|||||||
|
|
||||||
bool add_play_xr_mode_options = false;
|
bool add_play_xr_mode_options = false;
|
||||||
#ifndef XR_DISABLED
|
#ifndef XR_DISABLED
|
||||||
if (OS::get_singleton()->has_feature("xr_editor") &&
|
if (XRServer::get_xr_mode() == XRServer::XRMODE_ON ||
|
||||||
(XRServer::get_xr_mode() == XRServer::XRMODE_ON ||
|
(XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT && GLOBAL_GET("xr/openxr/enabled"))) {
|
||||||
(XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT && GLOBAL_GET("xr/openxr/enabled")))) {
|
// If OpenXR is enabled, we turn the `play_scene_button` and
|
||||||
// If this is the XR editor and openxr is enabled, we turn the `play_scene_button` and
|
|
||||||
// `play_custom_scene_button` into MenuButtons to provide the option to start a scene in
|
// `play_custom_scene_button` into MenuButtons to provide the option to start a scene in
|
||||||
// either regular mode or XR mode.
|
// either regular mode or XR mode.
|
||||||
add_play_xr_mode_options = true;
|
add_play_xr_mode_options = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user