Commit: 528a8bd78833a3b7f8780770cd3db8e69e402dee Author: Brecht Van Lommel Date: Thu Oct 4 14:35:18 2018 +0200 Branches: blender2.8 https://developer.blender.org/rB528a8bd78833a3b7f8780770cd3db8e69e402dee
UI: duplicate X-ray option in popover, makes relation with alpha more clear. =================================================================== M 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() _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs