[Bf-committers] Specials menu 'merge' patch

Matt Ebb bf-committers@blender.org
Thu, 1 May 2003 01:41:31 +1000

This is a multi-part message in MIME format.

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit

Sorry, that was dumb - I should have included this too. I also changed the
merge menu order so that 'At Center' is the default option, for speedier

The 3D cursor needs to be adjusted to the correct position before the
merging, so it's a slower process than merging to center anyway. It's a
faster workflow for merging to center if the user can just keep clicking in
the same spot, rather than adjusting the mouse position for each menu.

You can disregard the last edit.c.diff if you like and apply this instead.


----- Original Message ----- 
From: "Matt Ebb" <matt@mke3.net>
To: <bf-committers@blender.org>
Sent: Thursday, May 01, 2003 1:25 AM
Subject: [Bf-committers] Specials menu 'merge' patch

> Here's a patch against 2003-04-30 CVS to make Goofster's ALT-M 'Merge'
> feature appear in the WKEY Specials menu for meshes. I also changed the
> title to title case from upper case for consistency with other menus.
> Should the ALT-M hotkey be disabled in curve/nurbs editing? It only works
> halfway, since it can't remove doubles. This is confusing for users since
> works differently in different contexts. The merge menu is also available
> metaball editmode, and it should be prevented from doing so, since it
> doesn't work at all on metaballs
> Cheers
> Matt.

Content-Type: application/octet-stream;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;

--- =
dit.c	2003-04-29 00:43:20.000000000 +1000=0A=
+++ Documents and Settings/matt/Desktop/edit.c	2003-05-01 =
01:36:16.000000000 +1000=0A=
@@ -1177,17 +1177,18 @@=0A=
 	extern float doublimit;
 	short event;
-	event =3D pupmenu("MERGE %t|At Cursor%x1|At Center%x2");
+	event =3D pupmenu("Merge %t|At Center%x1|At Cursor%x2");
 	switch (event) {
-	    case 1: /*Merge at Cursor*/
-		    snap_sel_to_curs();
+	    case 1: /*Merge at center of selection*/
+		    snap_to_center();
 		    notice("Removed: %d\n", removedoublesflag(1, doublimit));
 		    allqueue(REDRAWVIEW3D, 0);
-	    case 2: /*Merge at center of selection*/
-		    snap_to_center();
+	    case 2: /*Merge at Cursor*/
+		    snap_sel_to_curs();
 		    notice("Removed: %d\n", removedoublesflag(1, doublimit));
 		    allqueue(REDRAWVIEW3D, 0);