diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-28 07:53:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-28 07:53:37 +0400 |
commit | 7199e2288f3df27ee2d21593da64ef4597fb86fd (patch) | |
tree | 33e69c15bb612736079510dd9fbcc055c6f06e51 /source/blender/editors/interface/interface_panel.c | |
parent | e6e74381819666141a5dd02d670ef06e64018dc3 (diff) |
Code cleanup: use sqrtf when input and output are float
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index f5e2bfb6c29..e9a4119ac7e 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -892,7 +892,7 @@ static void ui_do_animate(const bContext *C, Panel *panel) float fac; fac = (PIL_check_seconds_timer() - data->starttime) / ANIMATION_TIME; - fac = min_ff(sqrt(fac), 1.0f); + fac = min_ff(sqrtf(fac), 1.0f); /* for max 1 second, interpolate positions */ if (uiAlignPanelStep(sa, ar, fac, false)) { |