Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-04 15:35:18 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-04 16:26:38 +0300
commit528a8bd78833a3b7f8780770cd3db8e69e402dee (patch)
tree797be3bd749eabf38745a1175fe8b14ad6308638 /release/scripts/startup/bl_ui/space_view3d.py
parentd2f913a37a1b35504d9ce7a8bff2eec904aa9f3e (diff)
UI: duplicate X-ray option in popover, makes relation with alpha more clear.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py13
1 files changed, 9 insertions, 4 deletions
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()