Fix T64041: Vertex Sharp not working.

Broken in rB0ac3d5f7db67 last year...
This commit is contained in:
Bastien Montagne
2019-05-13 11:48:55 +02:00
parent b5ae049013
commit 5cd6ffad09

View File

@@ -1124,7 +1124,7 @@ static int edbm_mark_sharp_exec(bContext *C, wmOperator *op)
BMEditMesh *em = BKE_editmesh_from_object(obedit);
BMesh *bm = em->bm;
if (bm->totedgesel == 0) {
if ((use_verts && bm->totvertsel == 0) || (!use_verts && bm->totedgesel == 0)) {
continue;
}