[Bf-extensions-cvs] [7e126492] master: Update for changes in Blender

Campbell Barton noreply at git.blender.org
Mon Mar 18 02:41:06 CET 2019


Commit: 7e12649226fa6eeda7026cc2e8ba9f5a09be1400
Author: Campbell Barton
Date:   Mon Mar 18 11:59:33 2019 +1100
Branches: master
https://developer.blender.org/rBA7e12649226fa6eeda7026cc2e8ba9f5a09be1400

Update for changes in Blender

===================================================================

M	pie_menus_official/pie_manipulator_of.py
M	space_view3d_pie_menus/pie_manipulator_menu.py

===================================================================

diff --git a/pie_menus_official/pie_manipulator_of.py b/pie_menus_official/pie_manipulator_of.py
index eb475cf7..3bdc4e2a 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("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")
 
 
diff --git a/space_view3d_pie_menus/pie_manipulator_menu.py b/space_view3d_pie_menus/pie_manipulator_menu.py
index 68895901..3c65da58 100644
--- a/space_view3d_pie_menus/pie_manipulator_menu.py
+++ b/space_view3d_pie_menus/pie_manipulator_menu.py
@@ -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')



More information about the Bf-extensions-cvs mailing list