Skip to content

Commit

Permalink
Merge pull request #29 from Live2D/fix/3.3/physics-limitation
Browse files Browse the repository at this point in the history
Fixed the bug that Physics results in incorrect when the input value …
  • Loading branch information
itoh-at-live2d-com authored May 13, 2019
2 parents a376b6e + a54c11c commit cef7cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Framework/physics/cubismphysics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,14 +762,14 @@ export namespace Live2DCubismFramework

if(maxValue < value)
{
return result;
value = maxValue;
}

const minValue: number = CubismMath.min(parameterMaximum, parameterMinimum);

if(minValue > value)
{
return result;
value = minValue;
}

const minNormValue: number = CubismMath.min(normalizedMinimum, normalizedMaximum);
Expand Down

0 comments on commit cef7cbc

Please sign in to comment.