[Bf-blender-cvs] [3f1df6f6fc0] blender2.8: Fix T54836: Select sharp edges doesn't flush to faces

Campbell Barton noreply at git.blender.org
Thu Apr 26 14:36:11 CEST 2018


Commit: 3f1df6f6fc098c2eff4efc1f916132ba7a6d94a9
Author: Campbell Barton
Date:   Thu Apr 26 14:30:27 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3f1df6f6fc098c2eff4efc1f916132ba7a6d94a9

Fix T54836: Select sharp edges doesn't flush to faces

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

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

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

diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index b45db94318b..11fb65242f5 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -3690,6 +3690,13 @@ static int edbm_select_sharp_edges_exec(bContext *C, wmOperator *op)
 		}
 	}
 
+	if ((em->bm->selectmode & (SCE_SELECT_VERTEX | SCE_SELECT_EDGE)) == 0) {
+		/* Since we can't select individual edges, select faces connected to them. */
+		EDBM_selectmode_convert(em, SCE_SELECT_EDGE, SCE_SELECT_FACE);
+	}
+	else {
+		EDBM_selectmode_flush(em);
+	}
 	WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
 
 	return OPERATOR_FINISHED;



More information about the Bf-blender-cvs mailing list