Update for changes in Blender

This commit is contained in:
Campbell Barton 2019-03-18 11:59:33 +11:00
parent b1a011f77d
commit 7e12649226
2 changed files with 6 additions and 6 deletions

View File

@ -50,9 +50,9 @@ class VIEW3D_PIE_manipulator_of(Menu):
layout = self.layout
pie = layout.menu_pie()
pie.operator("wm.tool_set_by_name", icon='MAN_TRANS', text="Translate").name = "Move"
pie.operator("wm.tool_set_by_name", icon='MAN_ROT', text="Rotate").name = "Rotate"
pie.operator("wm.tool_set_by_name", icon='MAN_SCALE', text="Scale").name = "Scale"
pie.operator("wm.tool_set_by_id", icon='MAN_TRANS', text="Translate").name = "builtin.move"
pie.operator("wm.tool_set_by_id", icon='MAN_ROT', text="Rotate").name = "builtin.rotate"
pie.operator("wm.tool_set_by_id", icon='MAN_SCALE', text="Scale").name = "builtin.scale"
pie.prop(context.space_data, "show_gizmo")

View File

@ -57,11 +57,11 @@ class PieManipulator(Menu):
layout = self.layout
pie = layout.menu_pie()
# 4 - LEFT
pie.operator("wm.tool_set_by_name", text="Translate", icon='NONE').name = "Move"
pie.operator("wm.tool_set_by_id", text="Translate", icon='NONE').name = "builtin.move"
# 6 - RIGHT
pie.operator("wm.tool_set_by_name", text="Rotate", icon='NONE').name = "Rotate"
pie.operator("wm.tool_set_by_id", text="Rotate", icon='NONE').name = "builtin.rotate"
# 2 - BOTTOM
pie.operator("wm.tool_set_by_name", text="Scale", icon='NONE').name = "Scale"
pie.operator("wm.tool_set_by_id", text="Scale", icon='NONE').name = "builtin.scale"
# 8 - TOP
pie.operator("w.manupulators", text="Show/Hide Toggle", icon='NONE')