MESH_OT_vert_connect was missing select flush (newly created edges were not selected).

also <120 line length for cycles property descriptions.
This commit is contained in:
2012-10-16 03:21:22 +00:00
parent 5e1508528f
commit af6abc8c80
2 changed files with 26 additions and 11 deletions

View File

@@ -1218,10 +1218,13 @@ static int edbm_vert_connect(bContext *C, wmOperator *op)
if (!EDBM_op_finish(em, &bmop, op, TRUE)) {
return OPERATOR_CANCELLED;
}
EDBM_update_generic(C, em, TRUE);
else {
EDBM_selectmode_flush(em); /* so newly created edges get the selection state from the vertex */
return len ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
EDBM_update_generic(C, em, TRUE);
return len ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
}
}
void MESH_OT_vert_connect(wmOperatorType *ot)