Fix for [#20057] Shift F for setting brush strenght can never get to 1

This commit is contained in:
Matt Ebb 2009-12-07 03:37:43 +00:00
parent 764c4c94fa
commit 91102d96fc

@ -2378,7 +2378,7 @@ int WM_radial_control_modal(bContext *C, wmOperator *op, wmEvent *event)
if(event->ctrl) {
if(mode == WM_RADIALCONTROL_STRENGTH)
new_value = ((int)(new_value * 100) / 10*10) / 100.0f;
new_value = ((int)ceil(new_value * 10.f) * 10.0f) / 100.f;
else
new_value = ((int)new_value + 5) / 10*10;
}