Skip to content

Commit 976f42d

Browse files
committed
Merge pull request #106077 from m4gr3d/enable_xr_mode_options
Enable XR play mode options in the regular editor
2 parents 5aca298 + d320b92 commit 976f42d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

editor/gui/editor_run_bar.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,9 @@ EditorRunBar::EditorRunBar() {
599599

600600
bool add_play_xr_mode_options = false;
601601
#ifndef XR_DISABLED
602-
if (OS::get_singleton()->has_feature("xr_editor") &&
603-
(XRServer::get_xr_mode() == XRServer::XRMODE_ON ||
604-
(XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT && GLOBAL_GET("xr/openxr/enabled")))) {
605-
// If this is the XR editor and openxr is enabled, we turn the `play_scene_button` and
602+
if (XRServer::get_xr_mode() == XRServer::XRMODE_ON ||
603+
(XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT && GLOBAL_GET("xr/openxr/enabled"))) {
604+
// If OpenXR is enabled, we turn the `play_scene_button` and
606605
// `play_custom_scene_button` into MenuButtons to provide the option to start a scene in
607606
// either regular mode or XR mode.
608607
add_play_xr_mode_options = true;

0 commit comments

Comments
 (0)