diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 16:03:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 16:04:13 +0300 |
commit | eed9458c22b612f88893f48ec2f1a4d505672491 (patch) | |
tree | 1035fae3d1156a3984a4f13e67b5b9b367c45635 /release | |
parent | 6b6c86d1f79ef6326180b8db8537a00a3bab7dc2 (diff) |
UI: center align 3D view header snap, pivot etc
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index feadf0635c0..9343dfbca0e 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -98,20 +98,21 @@ class VIEW3D_HT_header(Header): object_mode = 'OBJECT' if obj is None else obj.mode scene = context.scene - # Pivot & Orientation - pivot_point = tool_settings.transform_pivot_point - act_pivot_point = bpy.types.ToolSettings.bl_rna.properties['transform_pivot_point'].enum_items[pivot_point] - row = layout.row(align=True) - row.popover( - space_type='TOPBAR', - region_type='HEADER', - panel_type="TOPBAR_PT_pivot_point", - icon=act_pivot_point.icon, - text="", - ) + # Orientation & Pivot if object_mode in {'OBJECT', 'EDIT', 'POSE'}: layout.prop(scene, "transform_orientation", text="") + pivot_point = tool_settings.transform_pivot_point + act_pivot_point = bpy.types.ToolSettings.bl_rna.properties["transform_pivot_point"].enum_items[pivot_point] + row = layout.row(align=True) + row.popover( + space_type='TOPBAR', + region_type='HEADER', + panel_type="TOPBAR_PT_pivot_point", + icon=act_pivot_point.icon, + text="", + ) + if obj: # Proportional editing if context.gpencil_data and context.gpencil_data.use_stroke_edit_mode: @@ -183,7 +184,7 @@ class VIEW3D_HT_header(Header): text="" ) - layout.separator() + layout.separator_spacer() # Viewport Settings row = layout.row(align=True) |