use normal mouse speed for the color wheel unless shift is pressed.

This commit is contained in:
2010-07-06 16:40:56 +00:00
parent ca5de1ea33
commit 577cd54c8e

View File

@@ -3066,7 +3066,7 @@ static int ui_numedit_but_HSVCIRCLE(uiBut *but, uiHandleButtonData *data, int mx
}
if(U.uiflag & USER_CONTINUOUS_MOUSE) {
float fac= shift ? 0.02 : 0.1;
float fac= shift ? 0.05 : 1.0f;
/* slow down the mouse, this is fairly picky */
mx = (data->dragstartx*(1.0f-fac) + mx*fac);
my = (data->dragstarty*(1.0f-fac) + my*fac);