[Bf-blender-cvs] [710f1f2232d] blender2.8: UI: add back pivot point
Campbell Barton
noreply at git.blender.org
Wed Jun 13 12:56:20 CEST 2018
Commit: 710f1f2232dd6b702e4ccaa3b4b799bd6883d417
Author: Campbell Barton
Date: Wed Jun 13 12:55:06 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB710f1f2232dd6b702e4ccaa3b4b799bd6883d417
UI: add back pivot point
Was accidentally removed after recent changes.
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list