[Bf-blender-cvs] [c861517ca6f] master: UI: Swap order of "Fade Inactive Geometry" in overlays popover

Jesse Y noreply at git.blender.org
Wed Nov 4 01:21:40 CET 2020


Commit: c861517ca6f425040c22cdde6c9ad58cd00716b7
Author: Jesse Y
Date:   Tue Nov 3 18:20:37 2020 -0600
Branches: master
https://developer.blender.org/rBc861517ca6f425040c22cdde6c9ad58cd00716b7

UI: Swap order of "Fade Inactive Geometry" in overlays popover

This simply makes the panel a bit nicer given how things are layed out--
the items with larger visual weight are grouped at the top.

Differential Revision: https://developer.blender.org/D9366

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

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 7bb987afa72..0f6d0211d1c 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6126,10 +6126,6 @@ class VIEW3D_PT_overlay_geometry(Panel):
         sub.active = overlay.show_wireframes or is_wireframes
         sub.prop(overlay, "wireframe_threshold", text="Wireframe")
 
-        col = layout.column(align=True)
-        col.active = display_all
-
-        col.prop(overlay, "show_face_orientation")
         row = col.row(align=True)
         if context.mode not in {'EDIT_ARMATURE', 'POSE', 'OBJECT', 'PAINT_GPENCIL',\
                                 'VERTEX_GPENCIL', 'WEIGHT_GPENCIL', 'SCULPT_GPENCIL', 'EDIT_GPENCIL'}:
@@ -6138,6 +6134,11 @@ class VIEW3D_PT_overlay_geometry(Panel):
             sub.active = overlay.show_fade_inactive
             sub.prop(overlay, "fade_inactive_alpha", text="Fade Inactive Geometry")
 
+        col = layout.column(align=True)
+        col.active = display_all
+
+        col.prop(overlay, "show_face_orientation")
+
         # sub.prop(overlay, "show_onion_skins")



More information about the Bf-blender-cvs mailing list