diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-04-23 00:16:02 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-04-23 00:16:02 +0400 |
commit | 6a00fcd90ca8a2c4bd3a0429d37be2ce6c2ac77a (patch) | |
tree | 8dadc718838f5d6711917b73991c2fdc2d9a28d6 /source/blender/src/header_image.c | |
parent | 43835d4d0450c15c4d8e962c0b979b34325f4c97 (diff) |
Add "View Selected" (numpad .-key) for faceselect mode and the uv editor.
Also includes some 2d vector operations (subtract, dot, normalise).
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index 346a59bad00..e0af6971959 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -411,6 +411,8 @@ static void do_image_viewmenu(void *arg, int event) case 8: /* Paint Panel... */ add_blockhandler(curarea, IMAGE_HANDLER_PAINT, UI_PNL_UNSTOW); break; + case 9: + image_viewcentre(); } allqueue(REDRAWVIEW3D, 0); } @@ -444,6 +446,7 @@ static uiBlock *image_viewmenu(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, "View Selected|NumPad .", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 9, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "View All|Home", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 1, ""); 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, 2, ""); |