diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 13:55:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 13:55:57 +0300 |
commit | 710f1f2232dd6b702e4ccaa3b4b799bd6883d417 (patch) | |
tree | f55400c005bdf8b987d98a4e8e7da5a3439a13a9 /release | |
parent | 23c24cead582f8d766e87ba9adc0f612b16bceea (diff) |
UI: add back pivot point
Was accidentally removed after recent changes.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 2004c1aa029..704a3be8a06 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -101,6 +101,16 @@ class VIEW3D_HT_header(Header): # Pivot & Orientation pivot_point = context.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 object_mode in {'OBJECT', 'EDIT', 'POSE'}: + layout.prop(scene, "transform_orientation", text="") if obj: # Proportional editing @@ -173,9 +183,6 @@ class VIEW3D_HT_header(Header): text="" ) - if mode in {'OBJECT', 'EDIT', 'POSE'}: - layout.prop(scene, "transform_orientation", text="") - layout.separator() # Viewport Settings |