UI: move gizmo popover next to the overlay buttons
In paint modes this was the only button in the middle.
This commit is contained in:
parent
bcefceb200
commit
25efa970d6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue