0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Merge pull request #2930 from tt2468/patch-1

libobs: Return target instead of current in calc_torquef
This commit is contained in:
Ben Torell 2020-05-14 03:14:22 -04:00 committed by GitHub
commit 07ae6b4ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ float calc_torquef(float val1, float val2, float torque, float min_adjust,
bool over;
if (close_float(val1, val2, EPSILON))
return val1;
return val2;
dist = (val2 - val1) * torque;
over = dist > 0.0f;