From 528a8bd78833a3b7f8780770cd3db8e69e402dee Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 4 Oct 2018 14:35:18 +0200 Subject: UI: duplicate X-ray option in popover, makes relation with alpha more clear. --- release/scripts/startup/bl_ui/space_view3d.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_view3d.py') diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 71cc129d222..ffca18d0ab5 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -4125,6 +4125,7 @@ class VIEW3D_PT_shading_color(Panel): shading = VIEW3D_PT_shading.get_shading(context) if shading.type != 'WIREFRAME': self._draw_color_type(context) + self.layout.separator() self._draw_background_color(context) @@ -4146,11 +4147,15 @@ class VIEW3D_PT_shading_options(Panel): row = col.row() if shading.type == 'WIREFRAME': - row.active = shading.show_xray_wireframe - row.prop(shading, "xray_alpha_wireframe", text="X-Ray") + row.prop(shading, "show_xray_wireframe", text="") + sub = row.row() + sub.active = shading.show_xray_wireframe + sub.prop(shading, "xray_alpha_wireframe", text="X-Ray") else: - row.active = shading.show_xray - row.prop(shading, "xray_alpha", text="X-Ray") + row.prop(shading, "show_xray", text="") + sub = row.row() + sub.active = shading.show_xray + sub.prop(shading, "xray_alpha", text="X-Ray") if shading.type == 'SOLID': row = col.row() -- cgit v1.2.3