mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 06:20:01 -05:00
Merge pull request #497 from PoChang007/blendshape_value_range
BlendShape AccumulateValue will not be over 100
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user