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:
authorCampbell Barton <ideasman42@gmail.com>2021-01-29 08:41:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-29 08:41:15 +0300
commitca4ac742f4b15254b59b4f77392af6d2a3d6ecec (patch)
treec63dd8e40440a950c937c2b025c5e5d0022b8052 /release/scripts/startup/bl_ui/space_view3d.py
parentb2ce1b07582d7a5916d0cf0b987fce92f1a1f0b6 (diff)
UI: clarify edit-mesh face center behavior
- Grey out in wire/xray display. - Expand the description for when this is used. While this is working, the intended behavior wasn't clear, address T85177.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index f2fd04499f5..3ed50a8c0a3 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6227,17 +6227,20 @@ class VIEW3D_PT_overlay_edit_mesh(Panel):
overlay = view.overlay
display_all = overlay.show_overlays
+ is_any_solid_shading = not (shading.show_xray or (shading.type == 'WIREFRAME'))
+
col = layout.column()
col.active = display_all
split = col.split()
sub = split.column()
- sub.active = not ((shading.type == 'WIREFRAME') or shading.show_xray)
+ sub.active = is_any_solid_shading
sub.prop(overlay, "show_edges", text="Edges")
sub = split.column()
sub.prop(overlay, "show_faces", text="Faces")
sub = split.column()
+ sub.active = is_any_solid_shading
sub.prop(overlay, "show_face_center", text="Center")
row = col.row(align=True)