[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11879] trunk/blender/source/blender/src/ header_view3d.c: *Added 'Zoom within border (Shift B)' to the 3d view menus .

Matt Ebb matt at mke3.net
Wed Aug 29 07:01:21 CEST 2007


Revision: 11879
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11879
Author:   broken
Date:     2007-08-29 07:01:20 +0200 (Wed, 29 Aug 2007)

Log Message:
-----------
*Added 'Zoom within border (Shift B)' to the 3d view menus.
Can people *please* not commit tools with only hotkeys to access them?

Modified Paths:
--------------
    trunk/blender/source/blender/src/header_view3d.c

Modified: trunk/blender/source/blender/src/header_view3d.c
===================================================================
--- trunk/blender/source/blender/src/header_view3d.c	2007-08-29 03:56:22 UTC (rev 11878)
+++ trunk/blender/source/blender/src/header_view3d.c	2007-08-29 05:01:20 UTC (rev 11879)
@@ -594,6 +594,9 @@
 	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 @@
 		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, "");





More information about the Bf-blender-cvs mailing list