Fix T45739: Number slider precision handling inconsistent between unit systems.
When using unit system, step was multiplied by 100, could really not find any good reason to that. Easy to revert anyway if needed, but in this case please explain why in code. ;) Investigated and patch by Thomas Radeke (ThomasR), thanks.
This commit is contained in:
parent
39ce0a9916
commit
883b420a51
Notes:
blender-bot
2024-01-16 18:05:25 +01:00
Referenced by issue #45739, Number slider precision handling inconsistent between unit systems Referenced by issue #45572, Incorrect dimension increment stepping when using other than Blender units
|
@ -2075,7 +2075,7 @@ static float ui_get_but_step_unit(uiBut *but, float step_default)
|
|||
/* -1 is an error value */
|
||||
if (step != -1.0) {
|
||||
BLI_assert(step > 0.0);
|
||||
return (float)(step / ui_get_but_scale_unit(but, 1.0)) * 100.0f;
|
||||
return (float)(step / ui_get_but_scale_unit(but, 1.0));
|
||||
}
|
||||
else {
|
||||
return step_default;
|
||||
|
|
Loading…
Reference in New Issue