Small fix: SHIFT+D caused transform to move with more precision, as if
shiftkey was pressed.
This commit is contained in:
Ton Roosendaal 2009-07-29 11:53:37 +00:00
parent 208c535869
commit 1744061a91
2 changed files with 4 additions and 4 deletions

@ -1947,7 +1947,7 @@ int handleEventWarp(TransInfo *t, wmEvent *event)
{ {
int status = 0; int status = 0;
if (event->type == MIDDLEMOUSE && event->val) if (event->type == MIDDLEMOUSE && event->val==KM_PRESS)
{ {
// Use customData pointer to signal warp direction // Use customData pointer to signal warp direction
if (t->customData == 0) if (t->customData == 0)
@ -2081,7 +2081,7 @@ int handleEventShear(TransInfo *t, wmEvent *event)
{ {
int status = 0; int status = 0;
if (event->type == MIDDLEMOUSE && event->val) if (event->type == MIDDLEMOUSE && event->val==KM_PRESS)
{ {
// Use customData pointer to signal Shear direction // Use customData pointer to signal Shear direction
if (t->customData == 0) if (t->customData == 0)
@ -3514,7 +3514,7 @@ void initBevel(TransInfo *t)
int handleEventBevel(TransInfo *t, wmEvent *event) int handleEventBevel(TransInfo *t, wmEvent *event)
{ {
if (event->val) { if (event->val==KM_PRESS) {
if(!G.editBMesh) return 0; if(!G.editBMesh) return 0;
switch (event->type) { switch (event->type) {

@ -317,7 +317,7 @@ int handleMouseInput(TransInfo *t, MouseInput *mi, wmEvent *event)
{ {
case LEFTSHIFTKEY: case LEFTSHIFTKEY:
case RIGHTSHIFTKEY: case RIGHTSHIFTKEY:
if (event->val) if (event->val==KM_PRESS)
{ {
t->modifiers |= MOD_PRECISION; t->modifiers |= MOD_PRECISION;
/* shift is modifier for higher precision transform /* shift is modifier for higher precision transform