Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2005-03-21 23:35:00 +0300
committerMartin Poirier <theeth@yahoo.com>2005-03-21 23:35:00 +0300
commit86d84f54c863e08f2167cb01cc3914050e484fbc (patch)
treeafbd5474a36a76ad5830362ba7454e3de002f583
parentc2121fb855ec328fd72f7e3cfb045d6027928065 (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-xsource/blender/src/transform.c3
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;