[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45842] trunk/blender/source/blender/ editors/mesh/editmesh_select.c: Ctrl+RMB to select an object in editmode didnt work in edge mode ( which is not great usability imho and confusing),

Campbell Barton ideasman42 at gmail.com
Sun Apr 22 07:30:35 CEST 2012


Revision: 45842
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45842
Author:   campbellbarton
Date:     2012-04-22 05:30:34 +0000 (Sun, 22 Apr 2012)
Log Message:
-----------
Ctrl+RMB to select an object in editmode didnt work in edge mode (which is not great usability imho and confusing),
now pass through if no edges can be tagged and select the object.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/editmesh_select.c

Modified: trunk/blender/source/blender/editors/mesh/editmesh_select.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_select.c	2012-04-22 04:01:14 UTC (rev 45841)
+++ trunk/blender/source/blender/editors/mesh/editmesh_select.c	2012-04-22 05:30:34 UTC (rev 45842)
@@ -1339,7 +1339,7 @@
 /* ******************* mesh shortest path select, uses prev-selected edge ****************** */
 
 /* since you want to create paths with multiple selects, it doesn't have extend option */
-static void mouse_mesh_shortest_path(bContext *C, int mval[2])
+static int mouse_mesh_shortest_path(bContext *C, int mval[2])
 {
 	ViewContext vc;
 	BMEditMesh *em;
@@ -1402,7 +1402,12 @@
 		}
 		
 		EDBM_update_generic(C, em, FALSE);
+
+		return TRUE;
 	}
+	else {
+		return FALSE;
+	}
 }
 
 
@@ -1411,9 +1416,12 @@
 	
 	view3d_operator_needs_opengl(C);
 
-	mouse_mesh_shortest_path(C, event->mval);
-	
-	return OPERATOR_FINISHED;
+	if (mouse_mesh_shortest_path(C, event->mval)) {
+		return OPERATOR_FINISHED;
+	}
+	else {
+		return OPERATOR_PASS_THROUGH;
+	}
 }
 
 static int edbm_shortest_path_select_poll(bContext *C)




More information about the Bf-blender-cvs mailing list