diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-15 16:54:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-15 16:56:50 +0300 |
commit | 25efa970d67b038ef6ab4d6ff2fe6a745d84a162 (patch) | |
tree | 6e4ab3770996c840288a48c3050f8625ada8baa4 /release/scripts/startup | |
parent | bcefceb200585c97afc975485b92ceb2e5a92a72 (diff) |
UI: move gizmo popover next to the overlay buttons
In paint modes this was the only button in the middle.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 4413e4f06eb..3099888461b 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -132,17 +132,6 @@ class VIEW3D_HT_header(Header): # Mode & Transform Settings scene = context.scene - # Gizmo popover. - row = layout.row(align=True) - # FIXME: place-holder icon. - row.prop(view, "show_gizmo", text="", toggle=True, icon='EMPTY_DATA') - sub = row.row(align=True) - sub.active = view.show_gizmo - sub.popover( - panel="VIEW3D_PT_gizmo_display", - text="", - ) - # Orientation if object_mode in {'OBJECT', 'EDIT', 'EDIT_GPENCIL'} or has_pose_mode: orient_slot = scene.transform_orientation_slots[0] @@ -282,6 +271,18 @@ class VIEW3D_HT_header(Header): text="", ) + # Gizmo toggle & popover. + row = layout.row(align=True) + # FIXME: place-holder icon. + row.prop(view, "show_gizmo", text="", toggle=True, icon='EMPTY_DATA') + sub = row.row(align=True) + sub.active = view.show_gizmo + sub.popover( + panel="VIEW3D_PT_gizmo_display", + text="", + ) + + # Overlay toggle & popover. row = layout.row(align=True) row.prop(overlay, "show_overlays", icon='OVERLAY', text="") sub = row.row(align=True) |