Merge pull request #29 from Live2D/fix/3.3/physics-limitation
Fixed the bug that Physics results in incorrect when the input value …translate
commit
cef7cbcb6f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue