UI: move orientation to the topbar

Move manipulator toggle to overlay popover.
This commit is contained in:
Campbell Barton 2018-05-12 14:54:57 +02:00
parent b4010005de
commit 90b2e4ce28
Notes: blender-bot 2023-02-14 06:00:46 +01:00
Referenced by issue #55036, Tool System Todo
3 changed files with 9 additions and 0 deletions

View File

@ -194,6 +194,10 @@ class TOPBAR_HT_lower_bar(Header):
elif mode == 'PARTICLE':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".particlemode", category="")
# 3D View Options, tsk. maybe users aren't always using 3D view?
scene = context.scene
layout.prop(scene, "transform_orientation", text="", icon='MANIPUL')
# Command Settings (redo)
op = context.active_operator
row = layout.row()

View File

@ -3600,6 +3600,8 @@ class VIEW3D_PT_overlay(Panel):
col.active = display_all
col.prop(overlay, "show_cursor")
col.prop(view, "show_manipulator")
col = layout.column()
col.active = display_all
col.prop(overlay, "show_outline_selected")

View File

@ -358,10 +358,13 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
}
else {
/* Moved to popover and topbar. */
#if 0
/* Transform widget / manipulators */
row = uiLayoutRow(layout, true);
uiItemR(row, &v3dptr, "show_manipulator", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
uiItemR(row, &sceneptr, "transform_orientation", 0, "", ICON_NONE);
#endif
}
if (obedit == NULL && v3d->localvd == NULL) {