[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44697] trunk/blender/source/blender/ editors/mesh/bmesh_tools.c: Patch [#30476] small 3 line patch to add the option 'NOT EQUAL TO' to the select faces by number of vertices operator

Michael Fox mfoxdogg at gmail.com
Wed Mar 7 08:32:29 CET 2012


Revision: 44697
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44697
Author:   mfoxdogg
Date:     2012-03-07 07:32:15 +0000 (Wed, 07 Mar 2012)
Log Message:
-----------
Patch [#30476] small 3 line patch to add the option 'NOT EQUAL TO' to the select faces by number of vertices operator

"This patch adds "Not Equal To" to the list of options for selecting faces based on the number of vertices. While the equivalent can indeed be achieved by using "Equal To" and invert selection, having this option allows for a smoother work-flow when adjusting the number of vertices to be compared."

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

Modified: trunk/blender/source/blender/editors/mesh/bmesh_tools.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/bmesh_tools.c	2012-03-07 04:53:43 UTC (rev 44696)
+++ trunk/blender/source/blender/editors/mesh/bmesh_tools.c	2012-03-07 07:32:15 UTC (rev 44697)
@@ -3883,6 +3883,8 @@
 			select = 1;
 		}else if (type == 2 && efa->len > numverts) {
 			select = 1;
+		}else if (type == 3 && efa->len != numverts) {
+			select = 1;
 		}
 
 		if (select) {
@@ -3902,6 +3904,7 @@
 	    {0, "LESS", 0, "Less Than", ""},
 	    {1, "EQUAL", 0, "Equal To", ""},
 	    {2, "GREATER", 0, "Greater Than", ""},
+	    {3, "NOTEQUAL", 0, "Not Equal To", ""},
 	    {0, NULL, 0, NULL, NULL}
 	};
 




More information about the Bf-blender-cvs mailing list