Merge pull request #497 from PoChang007/blendshape_value_range

BlendShape AccumulateValue will not be over 100
This commit is contained in:
ousttrue
2020-07-31 18:20:54 +09:00
committed by GitHub

View File

@@ -96,7 +96,8 @@ namespace VRM
float acc;
if (m_blendShapeValueMap.TryGetValue(binding, out acc))
{
m_blendShapeValueMap[binding] = acc + binding.Weight * value;
var accumulatedSum = acc + binding.Weight * value;
m_blendShapeValueMap[binding] = Mathf.Clamp(accumulatedSum, 0.0f, 100.0f);
}
else
{