diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-11-04 20:44:53 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-11-04 20:44:53 +0300 |
commit | baaf58872bf83049637f2e4da9c444265846f2af (patch) | |
tree | cf123c6caa86811035f2de03f05ab6b87131378a /space_view3d_pie_menus/pie_origin.py | |
parent | ad39a4b8961e2afb852852e2e3057bc3a770d2ee (diff) |
port "3D Viewport Pie Menus" to Blender 2.8
I'm pretty sure that I did not find every thing that needs to be ported. At least the addon is usable again.
I replaced deprecated icons with NONE. Someone else, who is responsible for this addon, can choose some new icons.
Differential Revision: https://developer.blender.org/D3883
Reviewer: campbellbarton
Diffstat (limited to 'space_view3d_pie_menus/pie_origin.py')
-rw-r--r-- | space_view3d_pie_menus/pie_origin.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/space_view3d_pie_menus/pie_origin.py b/space_view3d_pie_menus/pie_origin.py index 84344d7e..58f22d41 100644 --- a/space_view3d_pie_menus/pie_origin.py +++ b/space_view3d_pie_menus/pie_origin.py @@ -23,7 +23,7 @@ bl_info = { "description": "Origin Snap/Place Menu", "author": "pitiwazou, meta-androcto", "version": (0, 1, 1), - "blender": (2, 77, 0), + "blender": (2, 80, 0), "location": "3D View", "warning": "", "wiki_url": "", @@ -105,10 +105,10 @@ class PieOriginPivot(Menu): if obj and obj.type == 'MESH': # 4 - LEFT pie.operator("object.origin_set", text="Origin to Center of Mass", - icon='BBOX').type = 'ORIGIN_CENTER_OF_MASS' + icon='NONE').type = 'ORIGIN_CENTER_OF_MASS' # 6 - RIGHT pie.operator("object.origin_set", text="Origin To 3D Cursor", - icon='CURSOR').type = 'ORIGIN_CURSOR' + icon='PIVOT_CURSOR').type = 'ORIGIN_CURSOR' # 2 - BOTTOM pie.operator("object.pivotobottom", text="Origin to Bottom", icon='TRIA_DOWN') @@ -117,27 +117,27 @@ class PieOriginPivot(Menu): icon='SNAP_INCREMENT') # 7 - TOP - LEFT pie.operator("object.origin_set", text="Geometry To Origin", - icon='BBOX').type = 'GEOMETRY_ORIGIN' + icon='NONE').type = 'GEOMETRY_ORIGIN' # 9 - TOP - RIGHT pie.operator("object.origin_set", text="Origin To Geometry", - icon='ROTATE').type = 'ORIGIN_GEOMETRY' + icon='NONE').type = 'ORIGIN_GEOMETRY' else: # 4 - LEFT pie.operator("object.origin_set", text="Origin to Center of Mass", - icon='BBOX').type = 'ORIGIN_CENTER_OF_MASS' + icon='NONE').type = 'ORIGIN_CENTER_OF_MASS' # 6 - RIGHT pie.operator("object.origin_set", text="Origin To 3D Cursor", - icon='CURSOR').type = 'ORIGIN_CURSOR' + icon='PIVOT_CURSOR').type = 'ORIGIN_CURSOR' # 2 - BOTTOM pie.operator("object.pivot2selection", text="Origin To Selection", icon='SNAP_INCREMENT') # 8 - TOP pie.operator("object.origin_set", text="Origin To Geometry", - icon='ROTATE').type = 'ORIGIN_GEOMETRY' + icon='NONE').type = 'ORIGIN_GEOMETRY' # 7 - TOP - LEFT pie.operator("object.origin_set", text="Geometry To Origin", - icon='BBOX').type = 'GEOMETRY_ORIGIN' + icon='NONE').type = 'GEOMETRY_ORIGIN' classes = ( |