diff options
author | Ton Roosendaal <ton@blender.org> | 2009-07-29 15:53:37 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-07-29 15:53:37 +0400 |
commit | 1744061a9104b736a11f13b4165cce105cfdd06e (patch) | |
tree | 4a7b0f84f568920b0df641593bef7dc1cb78b46f /source/blender/editors | |
parent | 208c535869de41c9036582e80528c4cacb132339 (diff) |
2.5
Small fix: SHIFT+D caused transform to move with more precision, as if
shiftkey was pressed.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform.c | 6 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_input.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 35915c96f3c..e3e4822b383 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1947,7 +1947,7 @@ int handleEventWarp(TransInfo *t, wmEvent *event) { int status = 0; - if (event->type == MIDDLEMOUSE && event->val) + if (event->type == MIDDLEMOUSE && event->val==KM_PRESS) { // Use customData pointer to signal warp direction if (t->customData == 0) @@ -2081,7 +2081,7 @@ int handleEventShear(TransInfo *t, wmEvent *event) { int status = 0; - if (event->type == MIDDLEMOUSE && event->val) + if (event->type == MIDDLEMOUSE && event->val==KM_PRESS) { // Use customData pointer to signal Shear direction if (t->customData == 0) @@ -3514,7 +3514,7 @@ void initBevel(TransInfo *t) int handleEventBevel(TransInfo *t, wmEvent *event) { - if (event->val) { + if (event->val==KM_PRESS) { if(!G.editBMesh) return 0; switch (event->type) { diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c index ae8aacb3477..6bd0a8c8d42 100644 --- a/source/blender/editors/transform/transform_input.c +++ b/source/blender/editors/transform/transform_input.c @@ -317,7 +317,7 @@ int handleMouseInput(TransInfo *t, MouseInput *mi, wmEvent *event) { case LEFTSHIFTKEY: case RIGHTSHIFTKEY: - if (event->val) + if (event->val==KM_PRESS) { t->modifiers |= MOD_PRECISION; /* shift is modifier for higher precision transform |