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:
authorTon Roosendaal <ton@blender.org>2009-02-01 22:53:24 +0300
committerTon Roosendaal <ton@blender.org>2009-02-01 22:53:24 +0300
commit9c2e4571ccffcaf1c1e1db94a79636a933e89086 (patch)
tree9ae23f6111e8361267ba2505f59eb717c6b57447 /source/blender/editors/armature/armature_ops.c
parenta00aa16d7ec0f07f43d4c969f3ea58a518b7853f (diff)
2.5
Committed two posemode operators. Hide/Unhide. For people who want to check on adding operators, only check the changes in armature directory, rest is to get things to work, and a small bugfix :)
Diffstat (limited to 'source/blender/editors/armature/armature_ops.c')
-rw-r--r--source/blender/editors/armature/armature_ops.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/editors/armature/armature_ops.c b/source/blender/editors/armature/armature_ops.c
index 0c591c6d576..eaa8207bc11 100644
--- a/source/blender/editors/armature/armature_ops.c
+++ b/source/blender/editors/armature/armature_ops.c
@@ -64,20 +64,25 @@
/* Both operators ARMATURE_OT_xxx and POSE_OT_xxx here */
void ED_operatortypes_armature(void)
{
-// WM_operatortype_append(POSE_OT_pose_hide);
+ WM_operatortype_append(POSE_OT_hide);
+ WM_operatortype_append(POSE_OT_reveil);
}
void ED_keymap_armature(wmWindowManager *wm)
{
ListBase *keymap= WM_keymap_listbase(wm, "Armature", 0, 0);
+ wmKeymapItem *kmi;
/* only set in editmode armature, by space_view3d listener */
- WM_keymap_add_item(keymap, "ARMATURE_OT_hide", HKEY, KM_PRESS, 0, 0);
+// WM_keymap_add_item(keymap, "ARMATURE_OT_hide", HKEY, KM_PRESS, 0, 0);
/* only set in posemode, by space_view3d listener */
keymap= WM_keymap_listbase(wm, "Pose", 0, 0);
- WM_keymap_add_item(keymap, "POSE_OT_pose_hide", HKEY, KM_PRESS, 0, 0);
+ WM_keymap_add_item(keymap, "POSE_OT_hide", HKEY, KM_PRESS, 0, 0);
+ kmi= WM_keymap_add_item(keymap, "POSE_OT_hide", HKEY, KM_PRESS, KM_SHIFT, 0);
+ RNA_boolean_set(kmi->ptr, "invert", 1);
+ WM_keymap_add_item(keymap, "POSE_OT_reveil", HKEY, KM_PRESS, KM_ALT, 0);
}