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:
authorPhilipp Oeser <info@graphics-engineer.com>2021-01-29 12:21:17 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-01-29 12:21:17 +0300
commit45d952e04578a36261a2fd7ae8e4b3dcefa15e54 (patch)
treeb4d0b85a4170be6336de7d0bd51eedf2c2d96847 /release/scripts/startup/bl_ui/space_view3d.py
parent27e2c5ab78317fd79a50980b77fa93af42f2243d (diff)
parent3fb5e838677d8db0c193da1a7c70cb5c392a4610 (diff)
Merge branch 'blender-v2.92-release'
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 e653ead21bb..ebb6280a42f 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6247,17 +6247,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)