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:
parent
539a68f6c0
commit
ce973efd4f
@ -1778,6 +1778,7 @@ static void do_view3d_header_buttons(bContext *C, void *arg, int event)
|
|||||||
WM_operator_properties_free(&props_ptr);
|
WM_operator_properties_free(&props_ptr);
|
||||||
break;
|
break;
|
||||||
case B_AROUND:
|
case B_AROUND:
|
||||||
|
WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, obedit->data);
|
||||||
// XXX handle_view3d_around(); /* copies to other 3d windows */
|
// XXX handle_view3d_around(); /* copies to other 3d windows */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1307,16 +1307,19 @@ void calculateCenter(TransInfo *t)
|
|||||||
case V3D_ACTIVE:
|
case V3D_ACTIVE:
|
||||||
{
|
{
|
||||||
/* set median, and if if if... do object center */
|
/* set median, and if if if... do object center */
|
||||||
#if 0 // TRANSFORM_FIX_ME
|
|
||||||
EditSelection ese;
|
|
||||||
/* EDIT MODE ACTIVE EDITMODE ELEMENT */
|
/* EDIT MODE ACTIVE EDITMODE ELEMENT */
|
||||||
|
|
||||||
if (t->obedit && t->obedit->type == OB_MESH && EM_get_actSelection(&ese)) {
|
if (t->obedit && t->obedit->type == OB_MESH) {
|
||||||
EM_editselection_center(t->center, &ese);
|
EditSelection ese;
|
||||||
calculateCenter2D(t);
|
EditMesh *em = BKE_mesh_get_editmesh(t->obedit->data);
|
||||||
break;
|
|
||||||
|
if (EM_get_actSelection(em, &ese)) {
|
||||||
|
EM_editselection_center(t->center, &ese);
|
||||||
|
calculateCenter2D(t);
|
||||||
|
break;
|
||||||
|
}
|
||||||
} /* END EDIT MODE ACTIVE ELEMENT */
|
} /* END EDIT MODE ACTIVE ELEMENT */
|
||||||
#endif
|
|
||||||
|
|
||||||
calculateCenterMedian(t);
|
calculateCenterMedian(t);
|
||||||
if((t->flag & (T_EDIT|T_POSE))==0)
|
if((t->flag & (T_EDIT|T_POSE))==0)
|
||||||
|
Loading…
Reference in New Issue
Block a user