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:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-12-09 18:30:44 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-12-09 18:30:44 +0400
commit707e0da6f4952adb8e23fd48a2ee7581e98f44cc (patch)
tree18c5fad3c39435008ca321f1b9b45dbdebde75dc /source
parent9d807eb6ddaead5e3d29bdb53cbad5060f636c7b (diff)
Fix for select similar vertices operator: it's exec used to return selection count
instead of OPERATOR_* return values which used to confuse operators system.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_mods.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c
index b1754fa2f2e..0d268f8f4c1 100644
--- a/source/blender/editors/mesh/editmesh_mods.c
+++ b/source/blender/editors/mesh/editmesh_mods.c
@@ -1166,7 +1166,7 @@ static int similar_vert_select_exec(bContext *C, wmOperator *op)
deselcount--;
if (!deselcount) {/*have we selected all posible faces?, if so return*/
BKE_mesh_end_editmesh(me, em);
- return selcount;
+ return OPERATOR_FINISHED;
}
}
}
@@ -1184,7 +1184,7 @@ static int similar_vert_select_exec(bContext *C, wmOperator *op)
deselcount--;
if (!deselcount) {/*have we selected all posible faces?, if so return*/
BKE_mesh_end_editmesh(me, em);
- return selcount;
+ return OPERATOR_FINISHED;
}
}
}
@@ -1198,7 +1198,7 @@ static int similar_vert_select_exec(bContext *C, wmOperator *op)
if (!base_dvert || base_dvert->totweight == 0) {
BKE_mesh_end_editmesh(me, em);
- return selcount;
+ return OPERATOR_FINISHED;
}
for(eve= em->verts.first; eve; eve= eve->next) {
@@ -1216,7 +1216,7 @@ static int similar_vert_select_exec(bContext *C, wmOperator *op)
deselcount--;
if (!deselcount) { /*have we selected all posible faces?, if so return*/
BKE_mesh_end_editmesh(me, em);
- return selcount;
+ return OPERATOR_FINISHED;
}
break;
}