Fixed resize constraining. Was using same function as translation but this is no go for unaligned axis.

Made a generic snapGrid function. Now, each transform needs to define it's snapping parameters in their init. This is needed because of the constraint branching.
This commit is contained in:
2005-03-04 00:07:16 +00:00
parent 290361776e
commit f458405069
5 changed files with 136 additions and 39 deletions

View File

@@ -425,6 +425,10 @@ void apply_grid2(float *val, int max_index, float factor, float factor2)
apply_grid3(val, max_index, fac1, fac2, fac3);
}
void snapGrid(TransInfo *t, float *val) {
apply_grid3(val, t->num.idx_max, t->snap[0], t->snap[1], t->snap[2]);
}
void applyTransObjects(TransInfo *t)
{
TransData *td;