Edit Mesh: skip unselected meshes for "Set Normals from Faces"

This commit is contained in:
Campbell Barton 2021-08-17 17:11:02 +10:00
parent 4443831c6b
commit 32844d32c1
1 changed files with 4 additions and 0 deletions

View File

@ -9531,6 +9531,10 @@ static int edbm_set_normals_from_faces_exec(bContext *C, wmOperator *op)
Object *obedit = objects[ob_index];
BMEditMesh *em = BKE_editmesh_from_object(obedit);
BMesh *bm = em->bm;
if (bm->totfacesel == 0) {
continue;
}
BMFace *f;
BMVert *v;
BMEdge *e;