[Bf-extensions-cvs] [ebd058d7] blender2.8: Pie menu support for manipulator tools
Campbell Barton
noreply at git.blender.org
Mon May 28 16:34:47 CEST 2018
Commit: ebd058d7a6438d137522063bb3286c8acc325ca6
Author: Campbell Barton
Date: Mon May 28 16:34:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBAebd058d7a6438d137522063bb3286c8acc325ca6
Pie menu support for manipulator tools
===================================================================
M pie_menus_official/pie_manipulator_of.py
===================================================================
diff --git a/pie_menus_official/pie_manipulator_of.py b/pie_menus_official/pie_manipulator_of.py
index 04ced83a..ef25d369 100644
--- a/pie_menus_official/pie_manipulator_of.py
+++ b/pie_menus_official/pie_manipulator_of.py
@@ -50,9 +50,9 @@ class VIEW3D_PIE_manipulator_of(Menu):
layout = self.layout
pie = layout.menu_pie()
- pie.operator("view3d.manipulator_set", icon='MAN_TRANS', text="Translate").type = 'TRANSLATE'
- pie.operator("view3d.manipulator_set", icon='MAN_ROT', text="Rotate").type = 'ROTATE'
- pie.operator("view3d.manipulator_set", icon='MAN_SCALE', text="Scale").type = 'SCALE'
+ 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.prop(context.space_data, "show_manipulator")
More information about the Bf-extensions-cvs
mailing list