diff options
author | Matt Ebb <matt@mke3.net> | 2007-08-29 09:01:20 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2007-08-29 09:01:20 +0400 |
commit | 1b22a628f218bbb5a34ad01572ef38aa9b08db02 (patch) | |
tree | 77f2ac0691aa708dd863dd054fce01cfa412c10f /source/blender/src | |
parent | 99493ef6d9f9b1984fc5cd2631ac90676c86cdc1 (diff) |
*Added 'Zoom within border (Shift B)' to the 3d view menus.
Can people *please* not commit tools with only hotkeys to access them?
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/header_view3d.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/header_view3d.c b/source/blender/src/header_view3d.c index 97989adbc7f..196655cc97a 100644 --- a/source/blender/src/header_view3d.c +++ b/source/blender/src/header_view3d.c @@ -594,6 +594,9 @@ static void do_view3d_viewmenu(void *arg, int event) case 18: /* render preview */ toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0); break; + case 19: /* zoom within border */ + view3d_border_zoom(); + break; } allqueue(REDRAWVIEW3D, 1); } @@ -651,6 +654,7 @@ static uiBlock *view3d_viewmenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Clear Clipping Border|Alt B", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 17, ""); else uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Set Clipping Border|Alt B", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 17, ""); + if (v3d->persp==0) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Zoom Within Border...|Shift B", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 19, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "View Selected|NumPad .", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 11, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "View All|Home", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 9, ""); if(!curarea->full) uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Maximize Window|Ctrl UpArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 99, ""); |