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>2012-10-16 07:21:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-16 07:21:22 +0400
commitaf6abc8c8040a993d6b4e4daf18b22e030a48d8a (patch)
tree56abc3f56455c7764e25e478e1af8cf5ba7184a8 /source/blender
parent5e1508528f3fe07a9316f325d85d7dbcdb8f59e2 (diff)
MESH_OT_vert_connect was missing select flush (newly created edges were not selected).
also <120 line length for cycles property descriptions.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index d8dce98a009..1507597feeb 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -1218,10 +1218,13 @@ static int edbm_vert_connect(bContext *C, wmOperator *op)
if (!EDBM_op_finish(em, &bmop, op, TRUE)) {
return OPERATOR_CANCELLED;
}
-
- EDBM_update_generic(C, em, TRUE);
+ else {
+ EDBM_selectmode_flush(em); /* so newly created edges get the selection state from the vertex */
- return len ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
+ EDBM_update_generic(C, em, TRUE);
+
+ return len ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
+ }
}
void MESH_OT_vert_connect(wmOperatorType *ot)