libobs: Return target instead of current in calc_torquef

If the previously calculated torque value is too close to 1.0
(but not considered 1.0), it would be impossible for the TBar to
finish its transition since it returned the old value, causing desync.
master
tt2468 2020-05-13 19:06:54 -07:00
parent 7993179466
commit ba0f8de3a0
1 changed files with 1 additions and 1 deletions

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;