Skip to content

Commit

Permalink
Fixed the bug that Physics results in incorrect when the input value …
Browse files Browse the repository at this point in the history
…is out of the range of Parameter.
  • Loading branch information
ono-at-live2d-com committed May 13, 2019
1 parent a376b6e commit a54c11c
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 a54c11c

Please sign in to comment.