- Restored 'align mode', which allows rotate/scale with only object centers
- commented out debug prints from theeth :)
This commit is contained in:
@@ -1443,10 +1443,10 @@ void Transform(int mode)
|
||||
BIF_undo_push("Transform");
|
||||
}
|
||||
|
||||
printf("before postrans\n");
|
||||
// printf("before postrans\n");
|
||||
/* free data, reset vars */
|
||||
postTrans(&Trans);
|
||||
printf("after postrans\n");
|
||||
// printf("after postrans\n");
|
||||
|
||||
/* mess from old transform, just for now (ton) */
|
||||
{
|
||||
@@ -1751,6 +1751,7 @@ int Resize(TransInfo *t, short mval[2])
|
||||
Mat3ToSize(tmat, fsize);
|
||||
}
|
||||
|
||||
if ((G.vd->flag & V3D_ALIGN)==0) { // align mode doesn't rotate objects itself
|
||||
/* handle ipokeys? */
|
||||
if(td->tdi) {
|
||||
TransDataIpokey *tdi= td->tdi;
|
||||
@@ -1773,6 +1774,7 @@ int Resize(TransInfo *t, short mval[2])
|
||||
td->ext->size[2] = td->ext->isize[2] + td->ext->isize[2] * (fsize[2] - 1.0f) * td->factor;
|
||||
}
|
||||
}
|
||||
}
|
||||
VecSubf(vec, td->center, t->center);
|
||||
|
||||
Mat3MulVecfl(tmat, vec);
|
||||
@@ -2022,7 +2024,7 @@ int Rotation(TransInfo *t, short mval[2])
|
||||
|
||||
QuatMul(td->ext->quat, quat, td->ext->iquat);
|
||||
}
|
||||
else {
|
||||
else if ((G.vd->flag & V3D_ALIGN)==0) { // align mode doesn't rotate objects itself
|
||||
float obmat[3][3];
|
||||
|
||||
/* are there ipo keys? */
|
||||
|
||||
Reference in New Issue
Block a user