Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMichael Fox <mfoxdogg@gmail.com>2012-03-07 11:32:15 +0400
committerMichael Fox <mfoxdogg@gmail.com>2012-03-07 11:32:15 +0400
commitbdf731f03d727d3862537c59fa11477b77eb60b0 (patch)
tree62d7ca281c20e5850a0965286a7320e60982e97c /source
parent46045fbb09684ebc74835168ff4c5924261e3fc0 (diff)
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."
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/bmesh_tools.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/bmesh_tools.c b/source/blender/editors/mesh/bmesh_tools.c
index ae48eadd9cc..fa36113135e 100644
--- a/source/blender/editors/mesh/bmesh_tools.c
+++ b/source/blender/editors/mesh/bmesh_tools.c
@@ -3883,6 +3883,8 @@ static int select_by_number_vertices_exec(bContext *C, wmOperator *op)
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 @@ void MESH_OT_select_by_number_vertices(wmOperatorType *ot)
{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}
};