diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-02-06 13:48:00 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-02-06 13:48:00 +0300 |
commit | 0355dcc618d8e4ee6c9e40b09d58eacefb01ee30 (patch) | |
tree | 3ce5a209e9e7d536aff203a987f83ef1c89bf89b /source/blender/editors/armature/armature_ops.c | |
parent | 2756060a64e4aaa6f4773e53b944317b0e013a67 (diff) |
2.5 - Armatures Code
* Brought back recalculate bone roll (Ctrl N). This should be quite a straightforward example of a cleaned-up + ported armature tool.
* Cleaned up a few warnings
Diffstat (limited to 'source/blender/editors/armature/armature_ops.c')
-rw-r--r-- | source/blender/editors/armature/armature_ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_ops.c b/source/blender/editors/armature/armature_ops.c index 69efc8cb4a4..6736561e36c 100644 --- a/source/blender/editors/armature/armature_ops.c +++ b/source/blender/editors/armature/armature_ops.c @@ -85,7 +85,7 @@ static int armature_test_exec (bContext *C, wmOperator *op) printf("\tActive Bone \n"); { EditBone *ebone= CTX_data_active_bone(C); - if (ebone) printf("\t\tEditBone '%s' \n"); + if (ebone) printf("\t\tEditBone '%s' \n", ebone->name); else printf("\t\t<None> \n"); } @@ -108,6 +108,7 @@ void ARMATURE_OT_test(wmOperatorType *ot) void ED_operatortypes_armature(void) { WM_operatortype_append(ARMATURE_OT_align_bones); + WM_operatortype_append(ARMATURE_OT_calculate_roll); WM_operatortype_append(POSE_OT_hide); WM_operatortype_append(POSE_OT_reveil); @@ -129,6 +130,8 @@ void ED_keymap_armature(wmWindowManager *wm) /* 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_align_bones", AKEY, KM_PRESS, KM_CTRL|KM_ALT, 0); + WM_keymap_add_item(keymap, "ARMATURE_OT_calculate_roll", NKEY, KM_PRESS, KM_CTRL, 0); + WM_keymap_add_item(keymap, "ARMATURE_OT_test", TKEY, KM_PRESS, 0, 0); // XXX temp test for context iterators... to be removed /* Pose ------------------------ */ |