[Bf-extensions-cvs] [528316ff] blender2.8: "Manipulators" Pie - Simplify layout to only offer the 3 basic transforms
Joshua Leung
noreply at git.blender.org
Tue May 22 20:32:22 CEST 2018
Commit: 528316ff3b55097ec5d63a10ebc56687cf99bd13
Author: Joshua Leung
Date: Tue May 22 20:27:55 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBA528316ff3b55097ec5d63a10ebc56687cf99bd13
"Manipulators" Pie - Simplify layout to only offer the 3 basic transforms
This way, it's a more balanced layout, at the expense of losing access to the
Translate/Rotate/Scale manipulator. But for our Spring animator at least, this
is sufficient already.
===================================================================
M space_view3d_pie_menus/pie_manipulator_menu.py
===================================================================
diff --git a/space_view3d_pie_menus/pie_manipulator_menu.py b/space_view3d_pie_menus/pie_manipulator_menu.py
index bc447a20..3a599483 100644
--- a/space_view3d_pie_menus/pie_manipulator_menu.py
+++ b/space_view3d_pie_menus/pie_manipulator_menu.py
@@ -63,21 +63,13 @@ class PieManipulator(Menu):
layout = self.layout
pie = layout.menu_pie()
# 4 - LEFT
- pie.separator() # Rotate/Scale
+ pie.operator("wm.tool_set_by_name", text="Translate", icon='MAN_TRANS').name = "Move"
# 6 - RIGHT
- pie.operator("wm.tool_set_by_name", text="Rotate", icon='MAN_ROT').name = "Rotate"
+ pie.operator("wm.tool_set_by_name", text="Scale", icon='MAN_SCALE').name = "Scale"
# 2 - BOTTOM
- pie.operator("wm.tool_set_by_name", text="Translate/Rotate/Scale").name = "Transform"
+ pie.operator("wm.tool_set_by_name", text="Rotate", icon='MAN_ROT').name = "Rotate"
# 8 - TOP
pie.operator("w.manupulators", text="Show/Hide Toggle", icon='MANIPUL')
- # 7 - TOP - LEFT
- pie.separator() # Translate/Rotate
- # 9 - TOP - RIGHT
- pie.operator("wm.tool_set_by_name", text="Translate", icon='MAN_TRANS').name = "Move"
- # 1 - BOTTOM - LEFT
- pie.separator() # Translate/Scale
- # 3 - BOTTOM - RIGHT
- pie.operator("wm.tool_set_by_name", text="Scale", icon='MAN_SCALE').name = "Scale"
classes = (
More information about the Bf-extensions-cvs
mailing list