Commit: 13a797466b0dd1a1e1158362036bcf9197123665
Author: Campbell Barton
Date:   Fri Oct 19 17:10:40 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB13a797466b0dd1a1e1158362036bcf9197123665

UI: correct face center button active state

===================================================================

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 b1d24b4591d..5cdeb2090be 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4463,9 +4463,9 @@ class VIEW3D_PT_overlay_edit_mesh(Panel):
         sub.prop(overlay, "show_faces", text="Faces")
         sub = split.column()
         if shading.type == 'WIREFRAME':
-            sub.active = shading.show_xray_wireframe
+            sub.active = not shading.show_xray_wireframe
         else:
-            sub.active = shading.show_xray
+            sub.active = not shading.show_xray
         sub.prop(overlay, "show_face_center", text="Center")
 
         row = col.row(align=True)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to