diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-03-21 23:35:00 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-03-21 23:35:00 +0300 |
commit | 86d84f54c863e08f2167cb01cc3914050e484fbc (patch) | |
tree | afbd5474a36a76ad5830362ba7454e3de002f583 | |
parent | c2121fb855ec328fd72f7e3cfb045d6027928065 (diff) |
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)
-rwxr-xr-x | source/blender/src/transform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index 3462a3eb8a7..b768f24a391 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -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; |