diff options
author | Julian Eisel <julian@blender.org> | 2020-04-22 14:36:04 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-04-22 14:36:04 +0300 |
commit | 136030c95656db371add0c5b7878f6442b8f24eb (patch) | |
tree | 9df14a9701d38c675912a9bdf4b2bd50ba1b35c2 | |
parent | 0bca9c97e1e01c3da9558828567a2be3db51d0f6 (diff) |
VR Scene Inspection: Tweaks to panel layouts
* Use different, more clear icon for activating a landmark
* Update layout to work better with recent layout changes in master
* Add warning regarding performance impact of viewport feedback options
-rw-r--r-- | viewport_vr_preview.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/viewport_vr_preview.py b/viewport_vr_preview.py index 1f8bbb64..5134782b 100644 --- a/viewport_vr_preview.py +++ b/viewport_vr_preview.py @@ -33,7 +33,7 @@ from bpy.app.handlers import persistent bl_info = { "name": "VR Scene Inspection", "author": "Julian Eisel (Severin)", - "version": (0, 1, 0), + "version": (0, 2, 0), "blender": (2, 83, 8), "location": "3D View > Sidebar > VR", "description": ("View the viewport with virtual reality glasses " @@ -214,7 +214,9 @@ class VIEW3D_UL_vr_landmarks(bpy.types.UIList): layout.prop(landmark, "name", text="") - icon = 'SOLO_ON' if (index == landmark_active_idx) else 'SOLO_OFF' + icon = ( + 'RADIOBUT_ON' if (index == landmark_active_idx) else 'RADIOBUT_OFF' + ) props = layout.operator( "view3d.vr_landmark_activate", text="", icon=icon) props.index = index @@ -269,10 +271,9 @@ class VIEW3D_PT_vr_session_view(bpy.types.Panel): layout.use_property_split = True layout.use_property_decorate = False # No animation. - layout.prop(session_settings, "show_floor", text="Floor") - layout.prop(session_settings, "show_annotation", text="Annotations") - - layout.separator() + col = layout.column(align=True, heading="Show") + col.prop(session_settings, "show_floor", text="Floor") + col.prop(session_settings, "show_annotation", text="Annotations") col = layout.column(align=True) col.prop(session_settings, "clip_start", text="Clip Start") @@ -289,8 +290,7 @@ class VIEW3D_PT_vr_session(bpy.types.Panel): layout = self.layout session_settings = context.window_manager.xr_session_settings - layout.use_property_split = True - layout.use_property_decorate = False # No animation. + layout.use_property_split = False is_session_running = bpy.types.XrSessionState.is_running(context) @@ -381,6 +381,13 @@ class VIEW3D_PT_vr_viewport_feedback(bpy.types.Panel): layout = self.layout view3d = context.space_data + col = layout.column(align=True) + col.label(icon='ERROR', text="Note:") + col.label(text="Settings here may have a significant") + col.label(text="performance impact!") + + layout.separator() + layout.prop(view3d.shading, "vr_show_virtual_camera") layout.prop(view3d, "mirror_xr_session") |