forked from bartvdbraak/blender
Fix for mistake in recent interface bugfix commit.
This commit is contained in:
parent
bb6c67cc73
commit
81dee8e1dd
@ -2129,7 +2129,7 @@ static int ui_do_but_NUM(uiBut *but)
|
|||||||
sx= mval[0];
|
sx= mval[0];
|
||||||
orig_x = sx; /* Store so we can scale the rate of change by the dist the mouse is from its original xlocation */
|
orig_x = sx; /* Store so we can scale the rate of change by the dist the mouse is from its original xlocation */
|
||||||
butrange= (but->max - but->min);
|
butrange= (but->max - but->min);
|
||||||
fstart= (butrange == 0.0)? 0.0f: value/butrange;
|
fstart= (butrange == 0.0)? 0.0f: (value - but->min)/butrange;
|
||||||
f= fstart;
|
f= fstart;
|
||||||
|
|
||||||
temp= (int)value;
|
temp= (int)value;
|
||||||
|
Loading…
Reference in New Issue
Block a user