Fixed the bug that Physics results in incorrect when the input value is out of the range of Parameter.

translate
ono-at-live2d-com 2019-05-13 10:39:38 +09:00
parent a376b6ec0a
commit a54c11c7c9
1 changed files with 2 additions and 2 deletions

View File

@ -762,14 +762,14 @@ export namespace Live2DCubismFramework
if(maxValue < value) if(maxValue < value)
{ {
return result; value = maxValue;
} }
const minValue: number = CubismMath.min(parameterMaximum, parameterMinimum); const minValue: number = CubismMath.min(parameterMaximum, parameterMinimum);
if(minValue > value) if(minValue > value)
{ {
return result; value = minValue;
} }
const minNormValue: number = CubismMath.min(normalizedMinimum, normalizedMaximum); const minNormValue: number = CubismMath.min(normalizedMinimum, normalizedMaximum);