diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-01-04 01:15:59 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-01-04 01:15:59 +0300 |
commit | ecc5f17e4d58fffd6fe5838847514d85ff629179 (patch) | |
tree | 850c33511c7b13aa3ccaba59e90a973bc2bcd0ef /source/blender/editors/transform/transform_input.c | |
parent | 166d957c5af04fb4fa82cdea1a4a110f1363bd3d (diff) |
2.5
Transform operator replay
Basic support working. Only saves mode and values, not constraint setup.
Removed event pointer from TransInfo (it's not available in operator exec). Replaced checks to event->modifiers to a functional modifier bitfield in TransInfo (that is, instead of checking for Shift, it checks for MOD_PRECISION) to make it remappable later.
Misc:
X-Mirror for mesh now working with transform
Diffstat (limited to 'source/blender/editors/transform/transform_input.c')
-rw-r--r-- | source/blender/editors/transform/transform_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c index 343a65abd6c..3272c35f5fa 100644 --- a/source/blender/editors/transform/transform_input.c +++ b/source/blender/editors/transform/transform_input.c @@ -309,6 +309,7 @@ int handleMouseInput(TransInfo *t, MouseInput *mi, wmEvent *event) case RIGHTSHIFTKEY: if (event->val) { + t->modifiers |= MOD_PRECISION; /* shift is modifier for higher precision transform * store the mouse position where the normal movement ended */ mi->precision_mval[0] = event->x - t->ar->winrct.xmin; @@ -317,6 +318,7 @@ int handleMouseInput(TransInfo *t, MouseInput *mi, wmEvent *event) } else { + t->modifiers &= ~MOD_PRECISION; mi->precision = 0; } redraw = 1; |