Fix for [#19780] pivot for rotation/scaling doesn't use "active vert/edge/face"

Martin please doublecheck, but it should be all good.
This commit is contained in:
Matt Ebb 2009-11-05 04:37:42 +00:00
parent 539a68f6c0
commit ce973efd4f
2 changed files with 11 additions and 7 deletions

@ -1778,6 +1778,7 @@ static void do_view3d_header_buttons(bContext *C, void *arg, int event)
WM_operator_properties_free(&props_ptr);
break;
case B_AROUND:
WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, obedit->data);
// XXX handle_view3d_around(); /* copies to other 3d windows */
break;

@ -1307,16 +1307,19 @@ void calculateCenter(TransInfo *t)
case V3D_ACTIVE:
{
/* set median, and if if if... do object center */
#if 0 // TRANSFORM_FIX_ME
EditSelection ese;
/* EDIT MODE ACTIVE EDITMODE ELEMENT */
if (t->obedit && t->obedit->type == OB_MESH && EM_get_actSelection(&ese)) {
EM_editselection_center(t->center, &ese);
calculateCenter2D(t);
break;
if (t->obedit && t->obedit->type == OB_MESH) {
EditSelection ese;
EditMesh *em = BKE_mesh_get_editmesh(t->obedit->data);
if (EM_get_actSelection(em, &ese)) {
EM_editselection_center(t->center, &ese);
calculateCenter2D(t);
break;
}
} /* END EDIT MODE ACTIVE ELEMENT */
#endif
calculateCenterMedian(t);
if((t->flag & (T_EDIT|T_POSE))==0)