Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-05-15 13:40:50 +0300
committerJoshua Leung <aligorith@gmail.com>2018-05-15 13:40:50 +0300
commit8021ac986a6437b6013a22d98e54186592f5d285 (patch)
treebaa1ce48ce7ddc4078c2674170e251df0a7b7bca /release
parent95e7559bb699b9123204f518ad400ad6349cab28 (diff)
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)
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py42
1 files changed, 42 insertions, 0 deletions
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,