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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-17 10:11:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-17 10:12:24 +0300
commit32844d32c1d90e6205145ef3bdde2f9281127c82 (patch)
tree16e0b9753b0774c70be77746dad0e6b49ea459b3 /source/blender/editors/mesh/editmesh_tools.c
parent4443831c6bc264f6017a309b6217beb72943abee (diff)
Edit Mesh: skip unselected meshes for "Set Normals from Faces"
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 101c997fd1c..fa0762ee0bf 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -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;