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.
This commit is contained in:
@@ -1166,7 +1166,7 @@ static int similar_vert_select_exec(bContext *C, wmOperator *op)
|
|||||||
deselcount--;
|
deselcount--;
|
||||||
if (!deselcount) {/*have we selected all posible faces?, if so return*/
|
if (!deselcount) {/*have we selected all posible faces?, if so return*/
|
||||||
BKE_mesh_end_editmesh(me, em);
|
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--;
|
deselcount--;
|
||||||
if (!deselcount) {/*have we selected all posible faces?, if so return*/
|
if (!deselcount) {/*have we selected all posible faces?, if so return*/
|
||||||
BKE_mesh_end_editmesh(me, em);
|
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) {
|
if (!base_dvert || base_dvert->totweight == 0) {
|
||||||
BKE_mesh_end_editmesh(me, em);
|
BKE_mesh_end_editmesh(me, em);
|
||||||
return selcount;
|
return OPERATOR_FINISHED;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(eve= em->verts.first; eve; eve= eve->next) {
|
for(eve= em->verts.first; eve; eve= eve->next) {
|
||||||
@@ -1216,7 +1216,7 @@ static int similar_vert_select_exec(bContext *C, wmOperator *op)
|
|||||||
deselcount--;
|
deselcount--;
|
||||||
if (!deselcount) { /*have we selected all posible faces?, if so return*/
|
if (!deselcount) { /*have we selected all posible faces?, if so return*/
|
||||||
BKE_mesh_end_editmesh(me, em);
|
BKE_mesh_end_editmesh(me, em);
|
||||||
return selcount;
|
return OPERATOR_FINISHED;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user