Size flipping, for kaito. Move pointer to the other side (horizontal) of the pointer to see. (Does affects size member, so just object position and edit mode)

This commit is contained in:
Martin Poirier
2005-03-21 20:35:00 +00:00
parent c2121fb855
commit 86d84f54c8

View File

@@ -1987,6 +1987,9 @@ int Resize(TransInfo *t, short mval[2])
(t->center2d[0] - mval[0])*(t->center2d[0] - mval[0])
) ) / t->fac;
}
if ((t->center2d[0] - mval[0]) * (t->center2d[0] - t->imval[0]) < 0)
ratio *= -1.0f;
size[0] = size[1] = size[2] = ratio;