diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-01-29 03:12:34 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-01-29 03:12:34 +0300 |
commit | 8072d88c75cab6bbcd2baf3b484acdf43cb04b4e (patch) | |
tree | de097b108c753714330852364f8c5f1625139773 /source | |
parent | c68f48d96439292ac2f0083d45cfe68449a2ce87 (diff) |
Added menu entries to 3d-view for the auto-bone-extension tools I added yesterday.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/header_view3d.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source/blender/src/header_view3d.c b/source/blender/src/header_view3d.c index 4cbad8a9758..4b95cc9e42a 100644 --- a/source/blender/src/header_view3d.c +++ b/source/blender/src/header_view3d.c @@ -3789,7 +3789,6 @@ static void do_view3d_edit_armaturemenu(void *arg, int event) static short numcuts= 2; switch(event) { - case 0: /* Undo Editing */ remake_editArmature(); break; @@ -3836,6 +3835,11 @@ static void do_view3d_edit_armaturemenu(void *arg, int event) case 18: /* merge bones */ merge_armature(); break; + case 19: /* auto-extensions */ + case 20: + case 21: + armature_autoside_names(event-19); + break; } allqueue(REDRAWVIEW3D, 0); @@ -3915,6 +3919,9 @@ static uiBlock *view3d_edit_armaturemenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Subdivide|W, 1", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 12, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Subdivide Multi|W, 2", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 15, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Flip Left & Right Names|W, 3", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 13, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "AutoName Left-Right|W, 4", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 19, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "AutoName Front-Back|W, 5", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 20, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "AutoName Top-Bottom|W, 6", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 21, ""); uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); @@ -4201,7 +4208,6 @@ static void do_view3d_pose_armaturemenu(void *arg, int event) ob=OBACT; switch(event) { - case 0: /* transform properties */ mainqenter(NKEY, 1); break; @@ -4239,6 +4245,11 @@ static void do_view3d_pose_armaturemenu(void *arg, int event) case 15: pose_relax(); break; + case 16: /* auto-extensions for bones */ + case 17: + case 18: + pose_autoside_names(event-16); + break; } allqueue(REDRAWVIEW3D, 0); @@ -4282,6 +4293,10 @@ static uiBlock *view3d_pose_armaturemenu(void *arg_unused) uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "AutoName Left-Right|W", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 16, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "AutoName Front-Back|W", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 17, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "AutoName Top-Bottom|W", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 18, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Flip L/R Names|W", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 9, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Copy Attributes...|Ctrl C", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 5, ""); |