add api calls for BM_mesh_active_vert/edge_get.

inspecting the edit-selection inline was cumbersome.
This commit is contained in:
2013-06-24 04:51:56 +00:00
parent bc79e226ee
commit 781184562b
12 changed files with 128 additions and 103 deletions

View File

@@ -2110,12 +2110,7 @@ static void createTransEditVerts(TransInfo *t)
}
/* check active */
if (em->bm->selected.last) {
BMEditSelection *ese = em->bm->selected.last;
if (ese->htype == BM_VERT) {
eve_act = (BMVert *)ese->ele;
}
}
eve_act = BM_mesh_active_vert_get(bm);
if (t->mode == TFM_BWEIGHT) {
BM_mesh_cd_flag_ensure(bm, BKE_mesh_from_object(t->obedit), ME_CDFLAG_VERT_BWEIGHT);