Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-08-12 17:41:52 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-08-12 17:43:41 +0300
commit883b420a5156fe616488f975a6817fde4cab0352 (patch)
tree9459cc885128d73e18d59546aaa60b26deee2c52 /source/blender
parent39ce0a99165782536eb55acc9d173c46d3071063 (diff)
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.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 19b780322ac..31976c7b78a 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -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;