forked from bartvdbraak/blender
Fix T46401: bad step size w/ radians
This commit is contained in:
parent
0d36233dd8
commit
0e290d75fc
@ -3962,8 +3962,12 @@ static float ui_numedit_apply_snapf(
|
||||
/* snapping by 10's for float buttons is quite annoying (location, scale...),
|
||||
* but allow for rotations */
|
||||
if (softrange >= 21.0f) {
|
||||
UnitSettings *unit = but->block->unit;
|
||||
int unit_type = UI_but_unit_type_get(but);
|
||||
if (!ELEM(unit_type, PROP_UNIT_ROTATION)) {
|
||||
if ((unit_type == PROP_UNIT_ROTATION) && (unit->system_rotation != USER_UNIT_ROT_RADIANS)) {
|
||||
/* pass (degrees)*/
|
||||
}
|
||||
else {
|
||||
softrange = 20.0f;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user