Fixed the bug that Physics results in incorrect when the input value is out of the range of Parameter.
parent
a376b6ec0a
commit
a54c11c7c9
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue