Local axis with multiple objects wasn't working for Scaling.

Also, splitted of Translation's applying loop (for eventually macro interface).
This commit is contained in:
2005-03-12 23:15:26 +00:00
parent 8f47841536
commit 597cbb1b4f
2 changed files with 39 additions and 28 deletions

View File

@@ -376,6 +376,9 @@ void applyObjectConstraintSize(TransInfo *t, TransData *td, float smat[3][3])
{
if (td && t->con.mode & CON_APPLY) {
float tmat[3][3];
float imat[3][3];
Mat3Inv(imat, td->axismtx);
if (!(t->con.mode & CON_AXIS0)) {
smat[0][0] = 1.0f;
@@ -388,7 +391,7 @@ void applyObjectConstraintSize(TransInfo *t, TransData *td, float smat[3][3])
}
Mat3MulMat3(tmat, smat, td->axismtx);
Mat3MulMat3(smat, td->axismtx, tmat);
Mat3MulMat3(smat, imat, tmat);
}
}
/*