code cleanup: no functional change - had both EDBM_editselection_* and BM_editselection_* funcs, replace EDBM_ funcs.

This commit is contained in:
2012-04-24 21:19:18 +00:00
parent d92a4ceb35
commit 47b6b60e5a
16 changed files with 132 additions and 155 deletions

View File

@@ -1523,8 +1523,8 @@ void calculateCenter(TransInfo *t)
BMEditSelection ese;
BMEditMesh *em = BMEdit_FromObject(t->obedit);
if (EDBM_editselection_active_get(em, &ese)) {
EDBM_editselection_center(t->center, &ese);
if (BM_select_history_active_get(em->bm, &ese)) {
BM_editselection_center(&ese, t->center);
calculateCenter2D(t);
break;
}