Matrix multiplcations for Multiple Object local constraints for Resize was done backward. Didn't show in my test case because they were too crude. Fixed now. (in essence, resize with multiple selected objects and local constraint was not good)

This commit is contained in:
2005-03-14 23:24:37 +00:00
parent 3ca88c4e7f
commit 9efe92bbaa

View File

@@ -390,8 +390,8 @@ static void applyObjectConstraintSize(TransInfo *t, TransData *td, float smat[3]
smat[2][2] = 1.0f;
}
Mat3MulMat3(tmat, smat, td->axismtx);
Mat3MulMat3(smat, imat, tmat);
Mat3MulMat3(tmat, smat, imat);
Mat3MulMat3(smat, td->axismtx, tmat);
}
}
/*
@@ -600,7 +600,7 @@ void BIF_setSingleAxisConstraint(float vec[3]) {
getConstraintMatrix(t);
VECCOPY(t->con.center, t->center);
if (G.obedit) {
if (t->flag & T_OBJECT) {
Mat4MulVecfl(G.obedit->obmat, t->con.center);
}