Skip to content
Snippets Groups Projects
Commit 5fc636c6 authored by Alaska's avatar Alaska Committed by Philipp Oeser
Browse files

Fix #135294: Improve missing VR support error message on macOS

This commit improves the error message explaining why VR isn't
supported on the macOS platform.

Pull Request: https://projects.blender.org/blender/blender/pulls/135302
parent 22b90532
No related branches found
No related tags found
No related merge requests found
...@@ -241,8 +241,12 @@ class VIEW3D_PT_vr_info(bpy.types.Panel): ...@@ -241,8 +241,12 @@ class VIEW3D_PT_vr_info(bpy.types.Panel):
return not bpy.app.build_options.xr_openxr return not bpy.app.build_options.xr_openxr
def draw(self, context): def draw(self, context):
import platform
layout = self.layout layout = self.layout
layout.label(icon='ERROR', text="Built without VR/OpenXR features") missing_support_string = "Built without VR/OpenXR features"
if platform.system() == "Darwin":
missing_support_string = "VR is not supported on macOS at the moment"
layout.label(icon='ERROR', text=missing_support_string)
classes = ( classes = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment