浏览代码

Merge pull request #106077 from m4gr3d/enable_xr_mode_options

Enable XR play mode options in the regular editor
Thaddeus Crews 4 月之前
父节点
当前提交
976f42de0b
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      editor/gui/editor_run_bar.cpp

+ 3 - 4
editor/gui/editor_run_bar.cpp

@@ -599,10 +599,9 @@ EditorRunBar::EditorRunBar() {
 
 	bool add_play_xr_mode_options = false;
 #ifndef XR_DISABLED
-	if (OS::get_singleton()->has_feature("xr_editor") &&
-			(XRServer::get_xr_mode() == XRServer::XRMODE_ON ||
-					(XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT && GLOBAL_GET("xr/openxr/enabled")))) {
-		// If this is the XR editor and openxr is enabled, we turn the `play_scene_button` and
+	if (XRServer::get_xr_mode() == XRServer::XRMODE_ON ||
+			(XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT && GLOBAL_GET("xr/openxr/enabled"))) {
+		// If 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
 		// either regular mode or XR mode.
 		add_play_xr_mode_options = true;