diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-11 14:06:01 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-11 14:24:13 +0300 |
commit | 160959152ebc980130c2c56bab3471167257eece (patch) | |
tree | d612fe210ceac51652537c755284223ea97f34a3 | |
parent | 78fc4b592aae07da3196c845b07764a08be779ba (diff) |
UI: 3D Viewport Header - swap position of shading/snapping settings
When tweaking the shading/overlays settings through the popovers,
these get on the way of the content in the viewport. Making it hard to
see the result of our changes.
Unfortunately this breaks consistency with other headers where the snapping
tools are aligned to the right, but the benefits outweigh the costs.
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index e2350d52eb9..e3f3d05defb 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -97,23 +97,6 @@ class VIEW3D_HT_header(Header): layout.separator_spacer() - # Viewport Settings - row = layout.row(align=True) - row.prop(shading, "type", text="", expand=True) - - sub = row.row(align=True) - sub.enabled = shading.type != 'RENDERED' - sub.popover(space_type='VIEW_3D', region_type='HEADER', panel_type="VIEW3D_PT_shading") - - row = layout.row(align=True) - row.prop(overlay, "show_overlays", icon='WIRE', text="") - - sub = row.row(align=True) - sub.active = overlay.show_overlays - sub.popover(space_type='VIEW_3D', region_type='HEADER', panel_type="VIEW3D_PT_overlay") - - layout.separator_spacer() - # Mode & Transform Settings scene = context.scene @@ -223,6 +206,23 @@ class VIEW3D_HT_header(Header): text="", ) + layout.separator_spacer() + + # Viewport Settings + row = layout.row(align=True) + row.prop(shading, "type", text="", expand=True) + + sub = row.row(align=True) + sub.enabled = shading.type != 'RENDERED' + sub.popover(space_type='VIEW_3D', region_type='HEADER', panel_type="VIEW3D_PT_shading") + + row = layout.row(align=True) + row.prop(overlay, "show_overlays", icon='WIRE', text="") + + sub = row.row(align=True) + sub.active = overlay.show_overlays + sub.popover(space_type='VIEW_3D', region_type='HEADER', panel_type="VIEW3D_PT_overlay") + class VIEW3D_MT_editor_menus(Menu): bl_space_type = 'VIEW3D_MT_editor_menus' |