Index: source/blender/src/interface.c =================================================================== RCS file: /cvsroot/bf-blender/blender/source/blender/src/interface.c,v retrieving revision 1.188 diff -u -p -r1.188 interface.c --- source/blender/src/interface.c 12 May 2005 20:06:30 -0000 1.188 +++ source/blender/src/interface.c 22 May 2005 09:16:10 -0000 @@ -1639,13 +1639,16 @@ static int ui_do_but_NUM(uiBut *but) double value; float deler, fstart, f, tempf; int lvalue, temp; /* , firsttime=1; */ - short retval=0, qual, sx, mval[2], pos=0; + short retval=0, qual, sx, origmval[2], mval[2], pos=0; but->flag |= UI_SELECT; ui_draw_but(but); ui_block_flush_back(but->block); uiGetMouse(mywinget(), mval); + + getmouse(origmval); /* stores the initial mouse coords for warping later */ + value= ui_get_but_val(but); sx= mval[0]; @@ -1743,6 +1746,10 @@ static int ui_do_but_NUM(uiBut *but) } BIF_wait_for_statechange(); } + + /* warp the cursor back to the original location + so we dont accedentaly cancel th operation */ + ui_warp_pointer(origmval[0], origmval[1]); /* click on the side arrows to increment/decrement, click inside * to edit the value directly */