[Bf-blender-cvs] [8021ac986a6] blender2.8: Pose Toolbar: Added Breakdowner/Push/Relax as separate tools
Joshua Leung
noreply at git.blender.org
Tue May 15 12:43:53 CEST 2018
Commit: 8021ac986a6437b6013a22d98e54186592f5d285
Author: Joshua Leung
Date: Tue May 15 12:40:50 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8021ac986a6437b6013a22d98e54186592f5d285
Pose Toolbar: Added Breakdowner/Push/Relax as separate tools
Currently all are stacked together, but perhaps if we don't get any other
tools in the meantime, it would make sense to have them separate.
Notes:
* No icons for now...
* There are some 2.8 bugs with the underlying operators (notably multi object)
===================================================================
M release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index c6e5f803ad4..5331c8a9b4f 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -610,6 +610,42 @@ class _defs_edit_curve:
)
+class _defs_pose:
+
+ @ToolDef.from_fn
+ def breakdown():
+ return dict(
+ text="Breakdowner",
+ icon=None,
+ widget=None,
+ keymap=(
+ ("pose.breakdown", dict(), dict(type='ACTIONMOUSE', value='PRESS')),
+ ),
+ )
+
+ @ToolDef.from_fn
+ def push():
+ return dict(
+ text="Push",
+ icon=None,
+ widget=None,
+ keymap=(
+ ("pose.push", dict(), dict(type='ACTIONMOUSE', value='PRESS')),
+ ),
+ )
+
+ @ToolDef.from_fn
+ def relax():
+ return dict(
+ text="Relax",
+ icon=None,
+ widget=None,
+ keymap=(
+ ("pose.relax", dict(), dict(type='ACTIONMOUSE', value='PRESS')),
+ ),
+ )
+
+
class _defs_sculpt:
@staticmethod
@@ -800,6 +836,12 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
'POSE': [
*_tools_select,
*_tools_transform,
+ None,
+ (
+ _defs_pose.breakdown,
+ _defs_pose.push,
+ _defs_pose.relax,
+ )
],
'EDIT_ARMATURE': [
*_tools_select,
More information about the Bf-blender-cvs
mailing list