[Bf-blender-cvs] [363dd97ae80] master: Fix T67370 Normal Tools(Alt +N), copy and paste not work

Sebastian Parborg noreply at git.blender.org
Tue Jul 30 15:41:03 CEST 2019


Commit: 363dd97ae80a4d097d92398b1769c1dca09c0ad9
Author: Sebastian Parborg
Date:   Tue Jul 30 15:37:27 2019 +0200
Branches: master
https://developer.blender.org/rB363dd97ae80a4d097d92398b1769c1dca09c0ad9

Fix T67370 Normal Tools(Alt +N), copy and paste not work

The copy operator requried at least a vert AND a face to be selected.
It should only require that a vert OR a face is selected.

===================================================================

M	source/blender/editors/mesh/editmesh_tools.c

===================================================================

diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 34c83263cac..3b5c8e9f101 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -8616,7 +8616,7 @@ static int edbm_normals_tools_exec(bContext *C, wmOperator *op)
 
     switch (mode) {
       case EDBM_CLNOR_TOOLS_COPY:
-        if (bm->totfacesel == 0 || bm->totvertsel == 0) {
+        if (bm->totfacesel == 0 && bm->totvertsel == 0) {
           BM_loop_normal_editdata_array_free(lnors_ed_arr);
           continue;
         }



More information about the Bf-blender-cvs mailing list