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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user