Added: new Pivot option, "Around active object".

Works nice quick to rotate a group of Objects around a defined center,
without hassle with the 3d cursor. Especially for the 3D Manipulator.

In EditMode/PoseMode this option falls back to "Centroid", as does the
"Individual centers" option already.
This commit is contained in:
2005-05-08 08:16:43 +00:00
parent d10862a9da
commit 74ec3d4f51
6 changed files with 1402 additions and 1382 deletions

View File

@@ -702,6 +702,17 @@ void calculateCenter(TransInfo *t)
/* Individual element center uses median center for helpline and such */
calculateCenterMedian(t);
break;
case V3D_ACTIVE:
/* set median, and if if if... do object center */
calculateCenterMedian(t);
if((t->flag & (T_EDIT|T_POSE))==0) {
Object *ob= OBACT;
if(ob) {
VECCOPY(t->center, ob->obmat[3]);
project_short_noclip(t->center, t->center2d);
}
}
}
/* setting constraint center */